Re: [PATCH 05/32] nohz: Adaptive tick stop and restart on nohz cpuset

2012-10-30 Thread Steven Rostedt
On Mon, 2012-10-29 at 16:27 -0400, Steven Rostedt wrote: > --- a/kernel/sched/core.c > +++ b/kernel/sched/core.c > @@ -1196,6 +1196,29 @@ static void update_avg(u64 *avg, u64 sample) > } > #endif > > +#ifdef CONFIG_CPUSETS_NO_HZ > +bool sched_can_stop_tick(void) > +{ > + struct rq *rq; >

Re: [PATCH 05/32] nohz: Adaptive tick stop and restart on nohz cpuset

2012-10-30 Thread Steven Rostedt
On Mon, 2012-10-29 at 16:27 -0400, Steven Rostedt wrote: --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -1196,6 +1196,29 @@ static void update_avg(u64 *avg, u64 sample) } #endif +#ifdef CONFIG_CPUSETS_NO_HZ +bool sched_can_stop_tick(void) +{ + struct rq *rq; + + rq

[PATCH 05/32] nohz: Adaptive tick stop and restart on nohz cpuset

2012-10-29 Thread Steven Rostedt
From: Frederic Weisbecker When a CPU is included in a nohz cpuset, try to switch it to nohz mode from the interrupt exit path if it is running a single non-idle task. Then restart the tick if necessary if we are enqueuing a second task while the timer is stopped, so that the scheduler tick is

[PATCH 05/32] nohz: Adaptive tick stop and restart on nohz cpuset

2012-10-29 Thread Steven Rostedt
From: Frederic Weisbecker fweis...@gmail.com When a CPU is included in a nohz cpuset, try to switch it to nohz mode from the interrupt exit path if it is running a single non-idle task. Then restart the tick if necessary if we are enqueuing a second task while the timer is stopped, so that the