[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1314631966.2816.93.camel@twins>
Date: Mon, 29 Aug 2011 17:32:46 +0200
From: Peter Zijlstra <a.p.zijlstra@...llo.nl>
To: Frederic Weisbecker <fweisbec@...il.com>
Cc: LKML <linux-kernel@...r.kernel.org>,
Andrew Morton <akpm@...ux-foundation.org>,
Anton Blanchard <anton@....ibm.com>,
Avi Kivity <avi@...hat.com>, Ingo Molnar <mingo@...e.hu>,
Lai Jiangshan <laijs@...fujitsu.com>,
"Paul E . McKenney" <paulmck@...ux.vnet.ibm.com>,
Paul Menage <menage@...gle.com>,
Stephen Hemminger <shemminger@...tta.com>,
Thomas Gleixner <tglx@...utronix.de>,
Tim Pepper <lnxninja@...ux.vnet.ibm.com>
Subject: Re: [PATCH 13/32] nohz: Adaptive tick stop and restart on nohz
cpuset
On Mon, 2011-08-15 at 17:52 +0200, Frederic Weisbecker wrote:
> +static void cpuset_nohz_restart_tick(void)
> +{
> + __get_cpu_var(task_nohz_mode) = 0;
> + tick_nohz_restart_sched_tick();
> +}
> +
> +void cpuset_update_nohz(void)
> +{
> + if (!tick_nohz_adaptive_mode())
> + return;
> +
> + if (!cpuset_nohz_can_stop_tick())
> + cpuset_nohz_restart_tick();
> +}
> +#endif
> +
> static void
> ttwu_stat(struct task_struct *p, int cpu, int wake_flags)
> {
> @@ -2560,6 +2592,8 @@ static void sched_ttwu_pending(void)
> ttwu_do_activate(rq, p, 0);
> }
>
> + cpuset_update_nohz();
> +
> raw_spin_unlock(&rq->lock);
> }
>
> @@ -2620,6 +2654,7 @@ static void ttwu_queue(struct task_struct *p, int cpu)
>
> raw_spin_lock(&rq->lock);
> ttwu_do_activate(rq, p, 0);
> + cpuset_update_nohz();
> raw_spin_unlock(&rq->lock);
> }
That really has nothing to do with cpusets, why doesn't that live in the
tick_nohz_* namespace? Something like tick_nohz_sched_wakeup() or so.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists