aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/rcutorture.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/rcutorture.c b/kernel/rcutorture.c
index 1e422ae1506b..186ead9fa348 100644
--- a/kernel/rcutorture.c
+++ b/kernel/rcutorture.c
@@ -1388,7 +1388,7 @@ rcu_torture_onoff(void *arg)
1388 WARN_ON(maxcpu < 0); 1388 WARN_ON(maxcpu < 0);
1389 while (!kthread_should_stop()) { 1389 while (!kthread_should_stop()) {
1390 cpu = (rcu_random(&rand) >> 4) % (maxcpu + 1); 1390 cpu = (rcu_random(&rand) >> 4) % (maxcpu + 1);
1391 if (cpu_online(cpu)) { 1391 if (cpu_online(cpu) && cpu_is_hotpluggable(cpu)) {
1392 if (verbose) 1392 if (verbose)
1393 printk(KERN_ALERT "%s" TORTURE_FLAG 1393 printk(KERN_ALERT "%s" TORTURE_FLAG
1394 "rcu_torture_onoff task: offlining %d\n", 1394 "rcu_torture_onoff task: offlining %d\n",
@@ -1402,7 +1402,7 @@ rcu_torture_onoff(void *arg)
1402 torture_type, cpu); 1402 torture_type, cpu);
1403 n_offline_successes++; 1403 n_offline_successes++;
1404 } 1404 }
1405 } else { 1405 } else if (cpu_is_hotpluggable(cpu)) {
1406 if (verbose) 1406 if (verbose)
1407 printk(KERN_ALERT "%s" TORTURE_FLAG 1407 printk(KERN_ALERT "%s" TORTURE_FLAG
1408 "rcu_torture_onoff task: onlining %d\n", 1408 "rcu_torture_onoff task: onlining %d\n",