Re: [PATCH V2 1/2] Tick: Introduce tick_nohz_check() to check nohzenable status

From: Viresh Kumar
Date: Fri Nov 15 2013 - 05:36:13 EST


On 15 November 2013 14:05, Lan Tianyu <tianyu.lan@xxxxxxxxx> wrote:
> In some cases, nohz enable status needs to be checked. E.G, in RCU and cpufreq
> ondemand governor. So add tick_nohz_check() to return tick_nohz_enabled value
> And use tick_nohz_check() instead of referencing tick_nohz_enabled in the rcutree_plugin.h.
>
> Signed-off-by: Lan Tianyu <tianyu.lan@xxxxxxxxx>
> ---
>
> Change since V2:
> Add ACCESS_ONCE to tick_nohz_check().
>
> include/linux/tick.h | 2 ++
> kernel/rcutree_plugin.h | 4 +---
> kernel/time/tick-sched.c | 8 +++++++-
> 3 files changed, 10 insertions(+), 4 deletions(-)

Acked-by: Viresh Kumar <viresh.kumar@xxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/