Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

cpuidle/powerpc: Fix target residency initialisation in pseries cpuidle

Remove the redundant target residency initialisation in pseries_cpuidle_driver_init().
This is currently over-writing the residency time updated as part of the static
table, resulting in all the idle states having the same target
residency of 100us which is incorrect. This may result in the menu governor making
wrong state decisions.

Signed-off-by: Deepthi Dharwar <deepthi@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

authored by

Deepthi Dharwar and committed by
Benjamin Herrenschmidt
817deb05 ce236ab5

-4
-4
arch/powerpc/platforms/pseries/processor_idle.c
··· 246 246 drv->states[drv->state_count] = /* structure copy */ 247 247 cpuidle_state_table[idle_state]; 248 248 249 - if (cpuidle_state_table == dedicated_states) 250 - drv->states[drv->state_count].target_residency = 251 - __get_cpu_var(smt_snooze_delay); 252 - 253 249 drv->state_count += 1; 254 250 } 255 251