Merge "msm: thermal: Update the hotplug initialization"
This commit is contained in:
commit
fafc905174
1 changed files with 2 additions and 3 deletions
|
@ -3615,7 +3615,7 @@ static int hotplug_init_cpu_offlined(void)
|
||||||
int temp = 0;
|
int temp = 0;
|
||||||
uint32_t cpu = 0;
|
uint32_t cpu = 0;
|
||||||
|
|
||||||
if (!hotplug_enabled)
|
if (!hotplug_enabled || !hotplug_task)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
mutex_lock(&core_control_mutex);
|
mutex_lock(&core_control_mutex);
|
||||||
|
@ -3632,8 +3632,7 @@ static int hotplug_init_cpu_offlined(void)
|
||||||
|
|
||||||
if (temp >= msm_thermal_info.hotplug_temp_degC)
|
if (temp >= msm_thermal_info.hotplug_temp_degC)
|
||||||
cpus[cpu].offline = 1;
|
cpus[cpu].offline = 1;
|
||||||
else if (temp <= (msm_thermal_info.hotplug_temp_degC -
|
else
|
||||||
msm_thermal_info.hotplug_temp_hysteresis_degC))
|
|
||||||
cpus[cpu].offline = 0;
|
cpus[cpu].offline = 0;
|
||||||
}
|
}
|
||||||
mutex_unlock(&core_control_mutex);
|
mutex_unlock(&core_control_mutex);
|
||||||
|
|
Loading…
Add table
Reference in a new issue