lkml.org 
[lkml]   [2013]   [Mar]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch 13/34] cris: Use generic idle loop
On Wed, 27 Mar 2013, Jesper Nilsson wrote:
>
> On Thu, Mar 21, 2013 at 09:53:06PM -0000, Thomas Gleixner wrote:
> [snip]
> > Index: linux-2.6/arch/cris/arch-v32/kernel/process.c
> > ===================================================================
> > --- linux-2.6.orig/arch/cris/arch-v32/kernel/process.c
> > +++ linux-2.6/arch/cris/arch-v32/kernel/process.c
> > @@ -23,12 +23,10 @@ extern void stop_watchdog(void);
> > /* We use this if we don't have any better idle routine. */
> > void default_idle(void)
> > {
> > - local_irq_disable();
> > - if (!need_resched()) {
> > - /* Halt until exception. */
> > - __asm__ volatile("ei \n\t"
> > - "halt ");
> > - }
> > + /* Halt until exception. */
> > + __asm__ volatile("ei \n\t"
> > + "halt ");
> > + /* CHECKME: Is this really needed ?? */
> > local_irq_enable();
>
> No, that local_irq_enable() is redundant since we already enabled interrupts
> in the assembler directive above.

That's what I thought:) Will remove it.

Thanks,

tglx


\
 
 \ /
  Last update: 2013-03-27 18:42    [W:0.553 / U:1.776 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site