diff options
Diffstat (limited to 'include/linux/cpu.h')
| -rw-r--r-- | include/linux/cpu.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/include/linux/cpu.h b/include/linux/cpu.h index 5f09323ee880..b1a635acf72a 100644 --- a/include/linux/cpu.h +++ b/include/linux/cpu.h | |||
| @@ -70,6 +70,39 @@ enum { | |||
| 70 | CPU_PRI_WORKQUEUE = 5, | 70 | CPU_PRI_WORKQUEUE = 5, |
| 71 | }; | 71 | }; |
| 72 | 72 | ||
| 73 | #define CPU_ONLINE 0x0002 /* CPU (unsigned)v is up */ | ||
| 74 | #define CPU_UP_PREPARE 0x0003 /* CPU (unsigned)v coming up */ | ||
| 75 | #define CPU_UP_CANCELED 0x0004 /* CPU (unsigned)v NOT coming up */ | ||
| 76 | #define CPU_DOWN_PREPARE 0x0005 /* CPU (unsigned)v going down */ | ||
| 77 | #define CPU_DOWN_FAILED 0x0006 /* CPU (unsigned)v NOT going down */ | ||
| 78 | #define CPU_DEAD 0x0007 /* CPU (unsigned)v dead */ | ||
| 79 | #define CPU_DYING 0x0008 /* CPU (unsigned)v not running any task, | ||
| 80 | * not handling interrupts, soon dead. | ||
| 81 | * Called on the dying cpu, interrupts | ||
| 82 | * are already disabled. Must not | ||
| 83 | * sleep, must not fail */ | ||
| 84 | #define CPU_POST_DEAD 0x0009 /* CPU (unsigned)v dead, cpu_hotplug | ||
| 85 | * lock is dropped */ | ||
| 86 | #define CPU_STARTING 0x000A /* CPU (unsigned)v soon running. | ||
| 87 | * Called on the new cpu, just before | ||
| 88 | * enabling interrupts. Must not sleep, | ||
| 89 | * must not fail */ | ||
| 90 | |||
| 91 | /* Used for CPU hotplug events occurring while tasks are frozen due to a suspend | ||
| 92 | * operation in progress | ||
| 93 | */ | ||
| 94 | #define CPU_TASKS_FROZEN 0x0010 | ||
| 95 | |||
| 96 | #define CPU_ONLINE_FROZEN (CPU_ONLINE | CPU_TASKS_FROZEN) | ||
| 97 | #define CPU_UP_PREPARE_FROZEN (CPU_UP_PREPARE | CPU_TASKS_FROZEN) | ||
| 98 | #define CPU_UP_CANCELED_FROZEN (CPU_UP_CANCELED | CPU_TASKS_FROZEN) | ||
| 99 | #define CPU_DOWN_PREPARE_FROZEN (CPU_DOWN_PREPARE | CPU_TASKS_FROZEN) | ||
| 100 | #define CPU_DOWN_FAILED_FROZEN (CPU_DOWN_FAILED | CPU_TASKS_FROZEN) | ||
| 101 | #define CPU_DEAD_FROZEN (CPU_DEAD | CPU_TASKS_FROZEN) | ||
| 102 | #define CPU_DYING_FROZEN (CPU_DYING | CPU_TASKS_FROZEN) | ||
| 103 | #define CPU_STARTING_FROZEN (CPU_STARTING | CPU_TASKS_FROZEN) | ||
| 104 | |||
| 105 | |||
| 73 | #ifdef CONFIG_SMP | 106 | #ifdef CONFIG_SMP |
| 74 | /* Need to know about CPUs going up/down? */ | 107 | /* Need to know about CPUs going up/down? */ |
| 75 | #if defined(CONFIG_HOTPLUG_CPU) || !defined(MODULE) | 108 | #if defined(CONFIG_HOTPLUG_CPU) || !defined(MODULE) |
