Re: [PATCH v2 17/76] ARC: Process-creation/scheduling/idle-loop

2013-01-21 Thread Arnd Bergmann
On Monday 21 January 2013, Vineet Gupta wrote: > - while (!need_resched()) > +doze: > + local_irq_disable(); > + if (!need_resched()) { > arch_idle(); > + goto doze; > + } else { > +

Re: [PATCH v2 17/76] ARC: Process-creation/scheduling/idle-loop

2013-01-21 Thread Vineet Gupta
On Friday 18 January 2013 08:05 PM, Arnd Bergmann wrote: > On Friday 18 January 2013, Vineet Gupta wrote: >> +void cpu_idle(void) >> +{ >> + /* Since we SLEEP in idle loop, TIF_POLLING_NRFLAG can't be set */ >> + >> + /* endless idle loop with no priority at all */ >> + while (1)

Re: [PATCH v2 17/76] ARC: Process-creation/scheduling/idle-loop

2013-01-21 Thread Vineet Gupta
On Friday 18 January 2013 08:05 PM, Arnd Bergmann wrote: On Friday 18 January 2013, Vineet Gupta wrote: +void cpu_idle(void) +{ + /* Since we SLEEP in idle loop, TIF_POLLING_NRFLAG can't be set */ + + /* endless idle loop with no priority at all */ + while (1) { +

Re: [PATCH v2 17/76] ARC: Process-creation/scheduling/idle-loop

2013-01-21 Thread Arnd Bergmann
On Monday 21 January 2013, Vineet Gupta wrote: - while (!need_resched()) +doze: + local_irq_disable(); + if (!need_resched()) { arch_idle(); + goto doze; + } else { +

Re: [PATCH v2 17/76] ARC: Process-creation/scheduling/idle-loop

2013-01-18 Thread Arnd Bergmann
On Friday 18 January 2013, Vineet Gupta wrote: > +void cpu_idle(void) > +{ > + /* Since we SLEEP in idle loop, TIF_POLLING_NRFLAG can't be set */ > + > + /* endless idle loop with no priority at all */ > + while (1) { > + tick_nohz_idle_enter(); > +

[PATCH v2 17/76] ARC: Process-creation/scheduling/idle-loop

2013-01-18 Thread Vineet Gupta
Signed-off-by: Vineet Gupta Cc: Al Viro Cc: Thomas Gleixner Cc: Frederic Weisbecker --- arch/arc/include/asm/arcregs.h | 20 arch/arc/include/asm/processor.h |3 + arch/arc/include/asm/switch_to.h | 41 arch/arc/kernel/ctx_sw.c | 91 +

[PATCH v2 17/76] ARC: Process-creation/scheduling/idle-loop

2013-01-18 Thread Vineet Gupta
Signed-off-by: Vineet Gupta vgu...@synopsys.com Cc: Al Viro v...@zeniv.linux.org.uk Cc: Thomas Gleixner t...@linutronix.de Cc: Frederic Weisbecker fweis...@gmail.com --- arch/arc/include/asm/arcregs.h | 20 arch/arc/include/asm/processor.h |3 + arch/arc/include/asm/switch_to.h |

Re: [PATCH v2 17/76] ARC: Process-creation/scheduling/idle-loop

2013-01-18 Thread Arnd Bergmann
On Friday 18 January 2013, Vineet Gupta wrote: +void cpu_idle(void) +{ + /* Since we SLEEP in idle loop, TIF_POLLING_NRFLAG can't be set */ + + /* endless idle loop with no priority at all */ + while (1) { + tick_nohz_idle_enter(); +