Re: [PATCH RESEND] fix WARNING: at kernel/cpu/idle.c:96

From: James Bottomley
Date: Fri Jun 14 2013 - 15:13:18 EST


On Fri, 2013-06-14 at 12:11 -0700, David Daney wrote:
> On 06/14/2013 11:55 AM, James Bottomley wrote:
> >>From 48bbf44a96676ce6f520a408378730c976e9a11e Mon Sep 17 00:00:00 2001
> > From: James Bottomley <JBottomley@xxxxxxxxxxxxx>
> > Date: Wed, 8 May 2013 14:05:34 -0700
> > Subject: [PATCH] [PARISC] fix WARNING: at kernel/cpu/idle.c:96
> >
> > On PA-RISC (and presumably any other arch that doesn't implement its own
> > arch_cpu_idle), we get this spurious boot warning. The problem is that the
> > way the idle task is selected initially using the weak arch_cpu_idle() in
> > idle.c causes us to enter this place once with interrupts enabled. Fix this
> > by disabling interrupts in the weak arch_cpu_idle() code.
>
> Is this changelog correct? It looks to me like you are enabling
> interrupts down there.

Yes, obvious typo, sorry. The WARN_ON check is for disabled interrupts
the fix is to enable them.

James


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/