summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorDeepthi Dharwar <deepthi@linux.vnet.ibm.com>2012-10-03 18:42:10 +0000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2012-10-18 10:57:24 +1100
commit817deb05df45577d4037230f2facee486c11d9df (patch)
tree5342d2a9856f9a2ddc8fe3908d2ca1c1596eb2c2 /arch
parentce236ab576a2d76b1d6eb268221e74f05ed48d8b (diff)
downloadlinux-817deb05df45577d4037230f2facee486c11d9df.tar.bz2
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>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/platforms/pseries/processor_idle.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/powerpc/platforms/pseries/processor_idle.c b/arch/powerpc/platforms/pseries/processor_idle.c
index 455760b1fe6e..02e425aa2af8 100644
--- a/arch/powerpc/platforms/pseries/processor_idle.c
+++ b/arch/powerpc/platforms/pseries/processor_idle.c
@@ -246,10 +246,6 @@ static int pseries_cpuidle_driver_init(void)
drv->states[drv->state_count] = /* structure copy */
cpuidle_state_table[idle_state];
- if (cpuidle_state_table == dedicated_states)
- drv->states[drv->state_count].target_residency =
- __get_cpu_var(smt_snooze_delay);
-
drv->state_count += 1;
}