Re: [RESEND][PATCH] ppc: fix powersave with interrupts disabled

From: Brian Waite
Date: Thu Jan 13 2005 - 21:42:23 EST


I apologize ahead of time for my mailer corrupting the patch. Here is
the patch again attached so as to get whitespace corruption. Also, I
removed a set of excessive parens.

Signed-off-by: Brian Waite <waite@xxxxxxxxxxxxxxxx>

--- 1.22/arch/ppc/kernel/idle.c Tue Jan 11 19:42:36 2005
+++ edited/arch/ppc/kernel/idle.c Thu Jan 13 17:22:25 2005
@@ -39,8 +39,9 @@
powersave = ppc_md.power_save;

if (!need_resched()) {
- if (powersave != NULL)
- powersave();
+ if (powersave != NULL && !irqs_disabled())
+ powersave();
+
else {
#ifdef CONFIG_SMP
set_thread_flag(TIF_POLLING_NRFLAG);

Attachment: powersave_idle.c.patch
Description: Binary data