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

Commit fafc9051 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: Update the hotplug initialization"

parents e3e38c9d f70b8219
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -3615,7 +3615,7 @@ static int hotplug_init_cpu_offlined(void)
	int temp = 0;
	uint32_t cpu = 0;

	if (!hotplug_enabled)
	if (!hotplug_enabled || !hotplug_task)
		return 0;

	mutex_lock(&core_control_mutex);
@@ -3632,8 +3632,7 @@ static int hotplug_init_cpu_offlined(void)

		if (temp >= msm_thermal_info.hotplug_temp_degC)
			cpus[cpu].offline = 1;
		else if (temp <= (msm_thermal_info.hotplug_temp_degC -
			msm_thermal_info.hotplug_temp_hysteresis_degC))
		else
			cpus[cpu].offline = 0;
	}
	mutex_unlock(&core_control_mutex);