smp/hotplug: Allow external multi-instance rollback
authorPeter Zijlstra <peterz@infradead.org>
Wed, 20 Sep 2017 17:00:16 +0000 (19:00 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 25 Sep 2017 20:11:42 +0000 (22:11 +0200)
commit96abb968549cdefd0964d1f7af0a79f4e6e7f897
tree30a5420e62341e1a9f70e4108a30f62384a80330
parentfac1c2040203363eab6c6e86ce883cb71390418f
smp/hotplug: Allow external multi-instance rollback

Currently the rollback of multi-instance states is handled inside
cpuhp_invoke_callback(). The problem is that when we want to allow an
explicit state change for rollback, we need to return from the
function without doing the rollback.

Change cpuhp_invoke_callback() to optionally return the multi-instance
state, such that rollback can be done from a subsequent call.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: bigeasy@linutronix.de
Cc: efault@gmx.de
Cc: rostedt@goodmis.org
Cc: max.byungchul.park@gmail.com
Link: https://lkml.kernel.org/r/20170920170546.720361181@infradead.org
kernel/cpu.c