diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2016-07-13 13:16:29 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2016-07-14 03:34:43 -0400 |
commit | 7ee681b25284782ecf380bf5ccf55f13c52fd0ce (patch) | |
tree | 3e3c0c734c5248f7342b8303908f5f824a6774ef /kernel/cpu.c | |
parent | c6a84daa3498f269e3b506757506f762b6f56080 (diff) |
workqueue: Convert to state machine callbacks
Get rid of the prio ordering of the separate notifiers and use a proper state
callback pair.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Anna-Maria Gleixner <anna-maria@linutronix.de>
Reviewed-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Acked-by: Tejun Heo <tj@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Lai Jiangshan <jiangshanlai@gmail.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Nicolas Iooss <nicolas.iooss_linux@m4x.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: rt@linutronix.de
Link: http://lkml.kernel.org/r/20160713153335.197083890@linutronix.de
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/cpu.c')
-rw-r--r-- | kernel/cpu.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/kernel/cpu.c b/kernel/cpu.c index 3705d9043c08..af53f820fec9 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c | |||
@@ -1185,6 +1185,11 @@ static struct cpuhp_step cpuhp_bp_states[] = { | |||
1185 | .startup = perf_event_init_cpu, | 1185 | .startup = perf_event_init_cpu, |
1186 | .teardown = perf_event_exit_cpu, | 1186 | .teardown = perf_event_exit_cpu, |
1187 | }, | 1187 | }, |
1188 | [CPUHP_WORKQUEUE_PREP] = { | ||
1189 | .name = "workqueue prepare", | ||
1190 | .startup = workqueue_prepare_cpu, | ||
1191 | .teardown = NULL, | ||
1192 | }, | ||
1188 | /* | 1193 | /* |
1189 | * Preparatory and dead notifiers. Will be replaced once the notifiers | 1194 | * Preparatory and dead notifiers. Will be replaced once the notifiers |
1190 | * are converted to states. | 1195 | * are converted to states. |
@@ -1267,6 +1272,11 @@ static struct cpuhp_step cpuhp_ap_states[] = { | |||
1267 | .startup = perf_event_init_cpu, | 1272 | .startup = perf_event_init_cpu, |
1268 | .teardown = perf_event_exit_cpu, | 1273 | .teardown = perf_event_exit_cpu, |
1269 | }, | 1274 | }, |
1275 | [CPUHP_AP_WORKQUEUE_ONLINE] = { | ||
1276 | .name = "workqueue online", | ||
1277 | .startup = workqueue_online_cpu, | ||
1278 | .teardown = workqueue_offline_cpu, | ||
1279 | }, | ||
1270 | 1280 | ||
1271 | /* | 1281 | /* |
1272 | * Online/down_prepare notifiers. Will be removed once the notifiers | 1282 | * Online/down_prepare notifiers. Will be removed once the notifiers |