aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/rcutorture.c
diff options
context:
space:
mode:
authorPaul E. McKenney <paul.mckenney@linaro.org>2011-04-18 02:45:23 -0400
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2011-05-06 02:16:55 -0400
commit3acf4a9a3d63f23430f940842829175b0778a1b8 (patch)
treee0bcf3bc65ac6272425a00703654a70650d8634c /kernel/rcutorture.c
parente3995a25fa361ce987a7d0ade00b17e3151519d7 (diff)
rcu: avoid hammering sched with yet another bound RT kthread
The scheduler does not appear to take kindly to having multiple real-time threads bound to a CPU that is going offline. So this commit is a temporary hack-around to avoid that happening. 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/rcutorture.c')
-rw-r--r--kernel/rcutorture.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/rcutorture.c b/kernel/rcutorture.c
index c224da41890c..4d256dba7d9b 100644
--- a/kernel/rcutorture.c
+++ b/kernel/rcutorture.c
@@ -163,11 +163,11 @@ static int stutter_pause_test;
163#endif 163#endif
164int rcutorture_runnable = RCUTORTURE_RUNNABLE_INIT; 164int rcutorture_runnable = RCUTORTURE_RUNNABLE_INIT;
165 165
166#ifdef CONFIG_RCU_BOOST 166#if defined(CONFIG_RCU_BOOST) && !defined(CONFIG_HOTPLUG_CPU)
167#define rcu_can_boost() 1 167#define rcu_can_boost() 1
168#else /* #ifdef CONFIG_RCU_BOOST */ 168#else /* #if defined(CONFIG_RCU_BOOST) && !defined(CONFIG_HOTPLUG_CPU) */
169#define rcu_can_boost() 0 169#define rcu_can_boost() 0
170#endif /* #else #ifdef CONFIG_RCU_BOOST */ 170#endif /* #else #if defined(CONFIG_RCU_BOOST) && !defined(CONFIG_HOTPLUG_CPU) */
171 171
172static unsigned long boost_starttime; /* jiffies of next boost test start. */ 172static unsigned long boost_starttime; /* jiffies of next boost test start. */
173DEFINE_MUTEX(boost_mutex); /* protect setting boost_starttime */ 173DEFINE_MUTEX(boost_mutex); /* protect setting boost_starttime */