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

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

Merge "msm: thermal: Configure core sensor id on emergency frequency init"

parents 38bbe0e1 901408b1
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -3709,6 +3709,13 @@ static void freq_mitigation_init(void)
		goto init_freq_thread;

	for_each_possible_cpu(cpu) {
		/*
		 * Hotplug may not be enabled,
		 * make sure core sensor id is initialized.
		 */
		cpus[cpu].sensor_id =
			sensor_get_id((char *)cpus[cpu].sensor_type);
		cpus[cpu].id_type = THERM_ZONE_ID;
		if (!(msm_thermal_info.freq_mitig_control_mask & BIT(cpu)))
			continue;
		hi_thresh = &cpus[cpu].threshold[FREQ_THRESHOLD_HIGH];