diff options
author | Peter Zijlstra <peterz@infradead.org> | 2017-09-20 13:00:15 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2017-09-25 16:11:41 -0400 |
commit | fac1c2040203363eab6c6e86ce883cb71390418f (patch) | |
tree | 3a31e99d359b99572084ca07fffe7ce19152ab68 | |
parent | e19b205be43d11bff638cad4487008c48d21c103 (diff) |
smp/hotplug: Add state diagram
Add a state diagram to clarify when which states are ran where.
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.661598270@infradead.org
-rw-r--r-- | include/linux/cpuhotplug.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/linux/cpuhotplug.h b/include/linux/cpuhotplug.h index f24bfb2b9a2d..477b2e6f60f7 100644 --- a/include/linux/cpuhotplug.h +++ b/include/linux/cpuhotplug.h | |||
@@ -3,6 +3,24 @@ | |||
3 | 3 | ||
4 | #include <linux/types.h> | 4 | #include <linux/types.h> |
5 | 5 | ||
6 | /* | ||
7 | * CPU-up CPU-down | ||
8 | * | ||
9 | * BP AP BP AP | ||
10 | * | ||
11 | * OFFLINE OFFLINE | ||
12 | * | ^ | ||
13 | * v | | ||
14 | * BRINGUP_CPU->AP_OFFLINE BRINGUP_CPU <- AP_IDLE_DEAD (idle thread/play_dead) | ||
15 | * | AP_OFFLINE | ||
16 | * v (IRQ-off) ,---------------^ | ||
17 | * AP_ONLNE | (stop_machine) | ||
18 | * | TEARDOWN_CPU <- AP_ONLINE_IDLE | ||
19 | * | ^ | ||
20 | * v | | ||
21 | * AP_ACTIVE AP_ACTIVE | ||
22 | */ | ||
23 | |||
6 | enum cpuhp_state { | 24 | enum cpuhp_state { |
7 | CPUHP_OFFLINE, | 25 | CPUHP_OFFLINE, |
8 | CPUHP_CREATE_THREADS, | 26 | CPUHP_CREATE_THREADS, |