Commit 29ce3785b22da47c49f4ef6e14b9014fa5dee261

Authored by James Bottomley
Committed by Thomas Gleixner
1 parent d7880812b3

idle: Enable interrupts in the weak arch_cpu_idle() implementation

PARISC bootup triggers the warning at kernel/cpu/idle.c:96. That's
caused by the weak arch_cpu_idle() implementation, which is provided
to avoid that architectures implement idle_poll over and over.

The switchover to polling mode happens in the first call of the weak
arch_cpu_idle() implementation, but that code fails to reenable
interrupts and therefor triggers the warning.

Fix this by enabling interrupts in the weak arch_cpu_idle() code.

[ tglx: Made the changelog match the patch ]

Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Reviewed-by: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Link: http://lkml.kernel.org/r/1371236142.2726.43.camel@dabdike
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

... ... @@ -59,6 +59,7 @@
59 59 void __weak arch_cpu_idle(void)
60 60 {
61 61 cpu_idle_force_poll = 1;
  62 + local_irq_enable();
62 63 }
63 64  
64 65 /*