powerpc/pseries: Rework lppaca_shared_proc() to avoid DEBUG_PREEMPT
[linux-2.6-microblaze.git] / drivers / cpuidle / cpuidle-pseries.c
index a7d33f3..14db9b7 100644 (file)
@@ -414,13 +414,7 @@ static int __init pseries_idle_probe(void)
                return -ENODEV;
 
        if (firmware_has_feature(FW_FEATURE_SPLPAR)) {
-               /*
-                * Use local_paca instead of get_lppaca() since
-                * preemption is not disabled, and it is not required in
-                * fact, since lppaca_ptr does not need to be the value
-                * associated to the current CPU, it can be from any CPU.
-                */
-               if (lppaca_shared_proc(local_paca->lppaca_ptr)) {
+               if (lppaca_shared_proc()) {
                        cpuidle_state_table = shared_states;
                        max_idle_state = ARRAY_SIZE(shared_states);
                } else {