RE: [PATCH 1/3] sched: Add new API wake_up_if_idle() to wake up the idle cpu

2014-09-04 Thread Liu, Chuansheng
.org; linux-kernel@vger.kernel.org; Liu, Changcheng; > Wang, Xiaoming; Chakravarty, Souvik K > Subject: Re: [PATCH 1/3] sched: Add new API wake_up_if_idle() to wake up the > idle cpu > > On 09/04/2014 09:17 AM, Chuansheng Liu wrote: > > Implementing one new API wake_up_if_idle(), wh

Re: [PATCH 1/3] sched: Add new API wake_up_if_idle() to wake up the idle cpu

2014-09-04 Thread Daniel Lezcano
On 09/04/2014 09:17 AM, Chuansheng Liu wrote: Implementing one new API wake_up_if_idle(), which is used to wake up the idle CPU. Suggested-by: Andy Lutomirski Signed-off-by: Chuansheng Liu Hi Chuanseng, in the future, please prefix the patches with the version number and a changelog. Tha

RE: [PATCH 1/3] sched: Add new API wake_up_if_idle() to wake up the idle cpu

2014-09-03 Thread Liu, Chuansheng
rty, Souvik K; Liu, Changcheng; > linux-kernel@vger.kernel.org > Subject: Re: [PATCH 1/3] sched: Add new API wake_up_if_idle() to wake up the > idle cpu > > On Thu, Aug 21, 2014 at 02:21:51PM -0700, Andy Lutomirski wrote: > > On Aug 18, 2014 3:52 AM, "Chuansheng Liu"

Re: [PATCH 1/3] sched: Add new API wake_up_if_idle() to wake up the idle cpu

2014-09-03 Thread Peter Zijlstra
On Thu, Aug 21, 2014 at 02:21:51PM -0700, Andy Lutomirski wrote: > On Aug 18, 2014 3:52 AM, "Chuansheng Liu" wrote: > > +void wake_up_if_idle(int cpu) > > +{ > > + struct rq *rq = cpu_rq(cpu); > > + unsigned long flags; > > + > > + if (set_nr_if_polling(rq->idle)) { > > +

Re: [PATCH 1/3] sched: Add new API wake_up_if_idle() to wake up the idle cpu

2014-09-03 Thread Peter Zijlstra
On Mon, Aug 18, 2014 at 04:37:30PM +0800, Chuansheng Liu wrote: > Implementing one new API wake_up_if_idle(), which is used to > wake up the idle CPU. > > Suggested-by: Andy Lutomirski > Signed-off-by: Chuansheng Liu > --- > include/linux/sched.h |1 + > kernel/sched/core.c | 16 +++

Re: [PATCH 1/3] sched: Add new API wake_up_if_idle() to wake up the idle cpu

2014-08-21 Thread Andy Lutomirski
On Aug 18, 2014 3:52 AM, "Chuansheng Liu" wrote: > > Implementing one new API wake_up_if_idle(), which is used to > wake up the idle CPU. > > Suggested-by: Andy Lutomirski > Signed-off-by: Chuansheng Liu > --- > include/linux/sched.h |1 + > kernel/sched/core.c | 16 >

Re: [PATCH 1/3] sched: Add new API wake_up_if_idle() to wake up the idle cpu

2014-08-20 Thread Daniel Lezcano
...@vger.kernel.org; linux-kernel@vger.kernel.org; Liu, Changcheng; Wang, Xiaoming; Chakravarty, Souvik K Subject: Re: [PATCH 1/3] sched: Add new API wake_up_if_idle() to wake up the idle cpu On 08/18/2014 10:37 AM, Chuansheng Liu wrote: Implementing one new API wake_up_if_idle(), which is used to

RE: [PATCH 1/3] sched: Add new API wake_up_if_idle() to wake up the idle cpu

2014-08-20 Thread Liu, Chuansheng
.org; linux-kernel@vger.kernel.org; Liu, Changcheng; > Wang, Xiaoming; Chakravarty, Souvik K > Subject: Re: [PATCH 1/3] sched: Add new API wake_up_if_idle() to wake up the > idle cpu > > On 08/18/2014 10:37 AM, Chuansheng Liu wrote: > > Implementing one new API wake_up_if_idle(), wh

Re: [PATCH 1/3] sched: Add new API wake_up_if_idle() to wake up the idle cpu

2014-08-20 Thread Daniel Lezcano
On 08/18/2014 10:37 AM, Chuansheng Liu wrote: Implementing one new API wake_up_if_idle(), which is used to wake up the idle CPU. Is this patchset tested ? Did you check it solves the issue you were facing ? Suggested-by: Andy Lutomirski Signed-off-by: Chuansheng Liu --- include/linux/sc