Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1423548
| From | "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH tip/core/rcu 7/8] torture: Make waketorture kill test if no hotpluggable CPUs |
| Date | 2016-06-16 00:30 +0200 |
| Message-ID | <rKrtU-8sD-13@gated-at.bofh.it> (permalink) |
| References | <rKrtU-8sD-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
This commit shuts down the kernel if a shutdown time was specified and
if there were no hotpluggable CPUs.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
---
kernel/rcu/waketorture.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/kernel/rcu/waketorture.c b/kernel/rcu/waketorture.c
index 8568688607ac..f9843eb3f7b7 100644
--- a/kernel/rcu/waketorture.c
+++ b/kernel/rcu/waketorture.c
@@ -248,9 +248,15 @@ static int wake_torture_onoff(void *args)
if (cpu_is_hotpluggable(cpu))
onoff_cpu = cpu;
}
- pr_alert("%s" TORTURE_FLAG " wake_torture_onoff: onoff_cpu: %d\n", torture_type, onoff_cpu);
- if (onoff_cpu < 0)
+ if (onoff_cpu < 0) {
VERBOSE_TOROUT_STRING("wake_torture_onoff: no hotpluggable CPUs!");
+ if (shutdown_secs > 0) {
+ VERBOSE_TOROUT_STRING("wake_torture_onoff: Shutting down");
+ kernel_power_off();
+ VERBOSE_TOROUT_STRING("wake_torture_onoff: Survived kernel_power_off()?");
+ }
+ }
+ pr_alert("%s" TORTURE_FLAG " wake_torture_onoff: onoff_cpu: %d\n", torture_type, onoff_cpu);
while (!torture_must_stop() && onoff_cpu >= 0) {
if (!torture_offline(onoff_cpu,
&n_offline_attempts, &n_offline_successes,
--
2.5.2
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH RFC tip/core/rcu 0/8] Waketorture, not for inclusion "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2016-06-16 00:30 +0200 [PATCH tip/core/rcu 7/8] torture: Make waketorture kill test if no hotpluggable CPUs "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2016-06-16 00:30 +0200 [PATCH tip/core/rcu 6/8] torture: Make waketorture always hotplug the same CPU "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2016-06-16 00:30 +0200 [PATCH tip/core/rcu 4/8] waketorture: Add utilization measurement "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2016-06-16 00:30 +0200 [PATCH tip/core/rcu 8/8] torture: Affinity waiter tasks away from hotpluggable CPU "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2016-06-16 00:30 +0200 [PATCH tip/core/rcu 1/8] waketorture: Add a wakeup-torture module "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2016-06-16 00:30 +0200 [PATCH tip/core/rcu 5/8] waketorture: Add hrtimer support "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2016-06-16 00:40 +0200
csiph-web