Messages in this thread | | | Date | Fri, 15 Nov 2013 16:05:58 +0530 | Subject | Re: [PATCH V2 1/2] Tick: Introduce tick_nohz_check() to check nohz enable status | From | Viresh Kumar <> |
| |
On 15 November 2013 14:05, Lan Tianyu <tianyu.lan@intel.com> 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@intel.com> > --- > > 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@linaro.org>
| |