diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2008-07-28 12:16:29 -0500 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2008-07-28 12:16:29 +1000 |
commit | 04321587584272f4e8b9818f319f40caf8eeee13 (patch) | |
tree | 5bf00c36a182644cc2c4fe2577b14e050a49418b /arch/s390/kernel/kprobes.c | |
parent | ffdb5976c47609c862917d4c186ecbb5706d2dda (diff) |
Hotplug CPU: don't check cpu_online after take_cpu_down
Akinobu points out that if take_cpu_down() succeeds, the cpu must be offline.
Remove the cpu_online() check, and put a BUG_ON().
Quoting Akinobu Mita:
Actually the cpu_online() check was necessary before appling this
stop_machine: simplify patch.
With old __stop_machine_run(), __stop_machine_run() could succeed
(return !IS_ERR(p) value) even if take_cpu_down() returned non-zero value.
The return value of take_cpu_down() was obtained through kthread_stop()..
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Cc: "Akinobu Mita" <akinobu.mita@gmail.com>
Diffstat (limited to 'arch/s390/kernel/kprobes.c')
0 files changed, 0 insertions, 0 deletions