diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2017-07-11 22:06:24 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2017-07-11 22:25:44 +0200 |
commit | dea1d0f5f1284e3defee4b8484d9fc230686cd42 (patch) | |
tree | 35fa8581121edb2a15846279b8d703f8b698afb0 /.get_maintainer.ignore | |
parent | 9cd4f1a4e7a858849e889a081a99adff83e08e4c (diff) | |
download | linux-rt-dea1d0f5f1284e3defee4b8484d9fc230686cd42.tar.gz |
smp/hotplug: Replace BUG_ON and react useful
The move of the unpark functions to the control thread moved the BUG_ON()
there as well. While it made some sense in the idle thread of the upcoming
CPU, it's bogus to crash the control thread on the already online CPU,
especially as the function has a return value and the callsite is prepared
to handle an error return.
Replace it with a WARN_ON_ONCE() and return a proper error code.
Fixes: 9cd4f1a4e7a8 ("smp/hotplug: Move unparking of percpu threads to the control CPU")
Rightfully-ranted-at-by: Linux Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to '.get_maintainer.ignore')
0 files changed, 0 insertions, 0 deletions