X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=arch%2Fpowerpc%2Fkernel%2Fidle.c;h=4180c3998b398f47a1fd5cc3bcc779446901b8fb;hb=45507ff3a2c58bc4781688eac1a80979ea972dce;hp=e9f321d74d85293323714af7b2bffa950e8760e6;hpb=500156a0f0e81e24991f5f0db56e859db1fbdacf;p=powerpc.git diff --git a/arch/powerpc/kernel/idle.c b/arch/powerpc/kernel/idle.c index e9f321d74d..4180c3998b 100644 --- a/arch/powerpc/kernel/idle.c +++ b/arch/powerpc/kernel/idle.c @@ -19,7 +19,6 @@ * 2 of the License, or (at your option) any later version. */ -#include #include #include #include @@ -50,9 +49,9 @@ void cpu_idle(void) set_thread_flag(TIF_POLLING_NRFLAG); while (1) { - ppc64_runlatch_off(); - while (!need_resched() && !cpu_should_die()) { + ppc64_runlatch_off(); + if (ppc_md.power_save) { clear_thread_flag(TIF_POLLING_NRFLAG); /*