Skip to content

Commit fac1c20

Browse files
Peter ZijlstraKAGA-KOKO
authored andcommitted
smp/hotplug: Add state diagram
Add a state diagram to clarify when which states are ran where. Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Link: https://lkml.kernel.org/r/[email protected]
1 parent e19b205 commit fac1c20

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

include/linux/cpuhotplug.h

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,24 @@
33

44
#include <linux/types.h>
55

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+
624
enum cpuhp_state {
725
CPUHP_OFFLINE,
826
CPUHP_CREATE_THREADS,

0 commit comments

Comments
 (0)