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 cpufreq" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html