Rusty Russell 0432158758 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>
2008-07-28 12:16:29 +10:00
..
2008-07-26 12:00:07 -07:00
2008-07-27 09:58:20 -07:00
2008-07-23 17:47:32 -07:00
2008-05-01 08:03:59 -07:00
2008-07-25 10:53:38 -07:00
2008-07-26 20:53:20 -04:00
2008-03-30 14:18:41 -07:00
2008-07-26 12:00:04 -07:00
2008-06-24 10:52:55 -05:00
2008-07-26 12:00:09 -07:00
2008-07-02 15:06:24 -06:00
2008-07-25 10:53:29 -07:00
2008-07-26 12:00:09 -07:00
2008-07-26 12:00:09 -07:00
2008-07-26 12:00:09 -07:00
2008-05-23 20:39:40 +02:00
2008-02-06 10:41:02 -08:00
2008-07-28 12:16:29 +10:00
2008-07-26 12:00:04 -07:00
2008-07-25 10:53:45 -07:00
2008-07-27 09:45:34 -07:00
2008-04-30 08:29:53 -07:00
2008-02-08 09:22:31 -08:00