Re: [PATCH V3 1/6] sched: idle: Add a weak arch_cpu_idle_poll function

2014-11-11 Thread Preeti U Murthy
On 11/10/2014 08:47 PM, Peter Zijlstra wrote: > On Mon, Nov 10, 2014 at 07:50:22PM +0530, Preeti U Murthy wrote: >> Hi Peter, >> >> On 11/10/2014 05:59 PM, Peter Zijlstra wrote: >>> On Fri, Nov 07, 2014 at 03:31:22PM +0100, Daniel Lezcano wrote: The poll function is called when a timer expired

Re: [PATCH V3 1/6] sched: idle: Add a weak arch_cpu_idle_poll function

2014-11-10 Thread Peter Zijlstra
On Mon, Nov 10, 2014 at 07:50:22PM +0530, Preeti U Murthy wrote: > Hi Peter, > > On 11/10/2014 05:59 PM, Peter Zijlstra wrote: > > On Fri, Nov 07, 2014 at 03:31:22PM +0100, Daniel Lezcano wrote: > >> The poll function is called when a timer expired or if we force to poll > >> when > >> the cpu_id

Re: [PATCH V3 1/6] sched: idle: Add a weak arch_cpu_idle_poll function

2014-11-10 Thread Preeti U Murthy
Hi Peter, On 11/10/2014 05:59 PM, Peter Zijlstra wrote: > On Fri, Nov 07, 2014 at 03:31:22PM +0100, Daniel Lezcano wrote: >> The poll function is called when a timer expired or if we force to poll when >> the cpu_idle_force_poll option is set. >> >> The poll function does: >> >>local_irq_e

Re: [PATCH V3 1/6] sched: idle: Add a weak arch_cpu_idle_poll function

2014-11-10 Thread Peter Zijlstra
On Fri, Nov 07, 2014 at 03:31:22PM +0100, Daniel Lezcano wrote: > The poll function is called when a timer expired or if we force to poll when > the cpu_idle_force_poll option is set. > > The poll function does: > >local_irq_enable(); >while (!tif_need_resched()) >

Re: [PATCH V3 1/6] sched: idle: Add a weak arch_cpu_idle_poll function

2014-11-08 Thread Preeti U Murthy
On 11/07/2014 08:01 PM, Daniel Lezcano wrote: > The poll function is called when a timer expired or if we force to poll when > the cpu_idle_force_poll option is set. > > The poll function does: > >local_irq_enable(); >while (!tif_need_resched()) >cpu_relax(); > >

[PATCH V3 1/6] sched: idle: Add a weak arch_cpu_idle_poll function

2014-11-07 Thread Daniel Lezcano
The poll function is called when a timer expired or if we force to poll when the cpu_idle_force_poll option is set. The poll function does: local_irq_enable(); while (!tif_need_resched()) cpu_relax(); This default poll function suits for the x86 arch because its rep;