diff options
author | Paul E. McKenney <paul.mckenney@linaro.org> | 2012-06-24 13:15:02 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2012-07-02 15:34:43 -0400 |
commit | 9d2ad24306f2fafc3612e5a216aab31f9e56e879 (patch) | |
tree | 6ced8145e842e29aaedda3d9453c74b6f0c92b4f /kernel/rcutree.h | |
parent | 4fa3b6cb1bc8c14b81b4c8ffdfd3f2500a7e9367 (diff) |
rcu: Make RCU_FAST_NO_HZ respect nohz= boot parameter
If the nohz= boot parameter disables nohz, then RCU_FAST_NO_HZ needs to
also disable itself. This commit therefore checks for tick_nohz_enabled
being zero, disabling rcu_prepare_for_idle() if so. This commit assumes
that tick_nohz_enabled can change at runtime: If this is not the case,
then a simpler approach suffices.
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/rcutree.h')
-rw-r--r-- | kernel/rcutree.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/rcutree.h b/kernel/rcutree.h index 19b61ac1079f..e978845c6800 100644 --- a/kernel/rcutree.h +++ b/kernel/rcutree.h | |||
@@ -97,6 +97,7 @@ struct rcu_dynticks { | |||
97 | /* # times non-lazy CBs posted to CPU. */ | 97 | /* # times non-lazy CBs posted to CPU. */ |
98 | unsigned long nonlazy_posted_snap; | 98 | unsigned long nonlazy_posted_snap; |
99 | /* idle-period nonlazy_posted snapshot. */ | 99 | /* idle-period nonlazy_posted snapshot. */ |
100 | int tick_nohz_enabled_snap; /* Previously seen value from sysfs. */ | ||
100 | #endif /* #ifdef CONFIG_RCU_FAST_NO_HZ */ | 101 | #endif /* #ifdef CONFIG_RCU_FAST_NO_HZ */ |
101 | }; | 102 | }; |
102 | 103 | ||