Skip to content

Commit 6e9c48b

Browse files
committed
torture: Delay CPU-hotplug operations until boot completes
CPU-hotplug operations invoke stop-machine, which can hog CPUs, which is not a great thing to do before boot has completed. This commit therefore makes the CPU-hotplug operations hold off until boot has completed. Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
1 parent 9a316fe commit 6e9c48b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

kernel/torture.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,8 @@ torture_onoff(void *arg)
359359
torture_hrtimeout_jiffies(onoff_holdoff, &rand);
360360
VERBOSE_TOROUT_STRING("torture_onoff end holdoff");
361361
}
362+
while (!rcu_inkernel_boot_has_ended())
363+
schedule_timeout_interruptible(HZ / 10);
362364
while (!torture_must_stop()) {
363365
if (disable_onoff_at_boot && !rcu_inkernel_boot_has_ended()) {
364366
torture_hrtimeout_jiffies(HZ / 10, &rand);

0 commit comments

Comments
 (0)