Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3a82db8d authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Revert "msm: thermal: Keep core_control_mask coincident with boot_cpu_mask""

parents bdcdb58c 8f660d17
Loading
Loading
Loading
Loading
+2 −13
Original line number Diff line number Diff line
@@ -4609,19 +4609,8 @@ static int probe_cc(struct device_node *node, struct msm_thermal_data *data,

	key = "qcom,core-control-mask";
	ret = of_property_read_u32(node, key, &data->core_control_mask);
	if (ret) {
		/*
		 * Set default mask for all cores except CPU0.
		 * E.g. 0xE for 4 cores and 0xFE for 8 cores.
		 */
		data->core_control_mask = (~1) & (BIT(num_possible_cpus()) - 1);
	}
	/*
	 * Keep core_control_mask coincident with boot_cpu_mask.
	 * cpu_online_mask is the same as boot_cpu_mask until thermal driver
	 * initialization.
	 */
	data->core_control_mask &= *(uint32_t *)cpu_online_mask;
	if (ret)
		goto read_node_fail;

	key = "qcom,hotplug-temp";
	ret = of_property_read_u32(node, key, &data->hotplug_temp_degC);