Re: [RFC PATCH v1 15/31] ARC: Process/scheduling/clock/Timers/Delay Management

2013-01-04 Thread Frederic Weisbecker
2013/1/2 Vineet Gupta : > On Tuesday 13 November 2012 01:59 AM, Thomas Gleixner wrote: >> On Wed, 7 Nov 2012, 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 *

Re: [RFC PATCH v1 15/31] ARC: Process/scheduling/clock/Timers/Delay Management

2013-01-02 Thread Vineet Gupta
On Wednesday 02 January 2013 12:43 PM, Vineet Gupta wrote: > On Tuesday 13 November 2012 01:59 AM, Thomas Gleixner wrote: >> On Wed, 7 Nov 2012, Vineet Gupta wrote: >>> +static int arc_finished_booting; >>> + >>> +/* >>> + * Scheduler clock - returns current time in nanosec units. >>> + * It's retu

Re: [RFC PATCH v1 15/31] ARC: Process/scheduling/clock/Timers/Delay Management

2013-01-01 Thread Vineet Gupta
On Tuesday 13 November 2012 01:59 AM, Thomas Gleixner wrote: > On Wed, 7 Nov 2012, 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: [RFC PATCH v1 15/31] ARC: Process/scheduling/clock/Timers/Delay Management

2012-11-12 Thread Thomas Gleixner
On Wed, 7 Nov 2012, 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(); > + > + while (!need_res

[RFC PATCH v1 15/31] ARC: Process/scheduling/clock/Timers/Delay Management

2012-11-07 Thread Vineet Gupta
Signed-off-by: Vineet Gupta --- arch/arc/include/asm/arcregs.h | 31 + arch/arc/include/asm/delay.h | 68 +++ arch/arc/include/asm/processor.h |3 + arch/arc/include/asm/switch_to.h | 41 +++ arch/arc/include/asm/timex.h | 18 +++ arch/arc/kernel/ctx_sw.c