diff options
author | Anna-Maria Gleixner <anna-maria@linutronix.de> | 2016-03-17 06:14:35 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2016-03-31 16:39:52 -0400 |
commit | de26ca19a530d2d822a6816834d22022e94b2e53 (patch) | |
tree | 7846a3fe0ca659eecc14478927813ebb52fe2544 /kernel/rcu | |
parent | 67522beecfc75d133514dda64107ee19125a74b9 (diff) |
rcutorture: Consider FROZEN hotplug notifier transitions
The hotplug notifier rcutorture_cpu_notify() doesn't consider the
corresponding CPU_XXX_FROZEN transitions. They occur on
suspend/resume and are usually handled the same way as the
corresponding non frozen transitions.
Mask the switch case action argument with '~CPU_TASKS_FROZEN' to map
CPU_XXX_FROZEN hotplug transitions on corresponding non-frozen
transitions.
Cc: Josh Triplett <josh@joshtriplett.org>
Cc: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
Signed-off-by: Anna-Maria Gleixner <anna-maria@linutronix.de>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/rcu')
-rw-r--r-- | kernel/rcu/rcutorture.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/rcu/rcutorture.c b/kernel/rcu/rcutorture.c index 52b49fe90919..633a68a09440 100644 --- a/kernel/rcu/rcutorture.c +++ b/kernel/rcu/rcutorture.c | |||
@@ -1585,7 +1585,7 @@ static int rcutorture_cpu_notify(struct notifier_block *self, | |||
1585 | { | 1585 | { |
1586 | long cpu = (long)hcpu; | 1586 | long cpu = (long)hcpu; |
1587 | 1587 | ||
1588 | switch (action) { | 1588 | switch (action & ~CPU_TASKS_FROZEN) { |
1589 | case CPU_ONLINE: | 1589 | case CPU_ONLINE: |
1590 | case CPU_DOWN_FAILED: | 1590 | case CPU_DOWN_FAILED: |
1591 | (void)rcutorture_booster_init(cpu); | 1591 | (void)rcutorture_booster_init(cpu); |