diff options
Diffstat (limited to 'include/linux/cpu.h')
| -rw-r--r-- | include/linux/cpu.h | 27 |
1 files changed, 10 insertions, 17 deletions
diff --git a/include/linux/cpu.h b/include/linux/cpu.h index cd4771b772c0..b6e4a598b2cd 100644 --- a/include/linux/cpu.h +++ b/include/linux/cpu.h | |||
| @@ -55,24 +55,17 @@ extern void unregister_cpu(struct cpu *cpu); | |||
| 55 | extern ssize_t arch_cpu_probe(const char *, size_t); | 55 | extern ssize_t arch_cpu_probe(const char *, size_t); |
| 56 | extern ssize_t arch_cpu_release(const char *, size_t); | 56 | extern ssize_t arch_cpu_release(const char *, size_t); |
| 57 | #endif | 57 | #endif |
| 58 | struct notifier_block; | ||
| 59 | |||
| 60 | #define CPU_ONLINE 0x0002 /* CPU (unsigned)v is up */ | ||
| 61 | #define CPU_UP_PREPARE 0x0003 /* CPU (unsigned)v coming up */ | ||
| 62 | #define CPU_DEAD 0x0007 /* CPU (unsigned)v dead */ | ||
| 63 | #define CPU_POST_DEAD 0x0009 /* CPU (unsigned)v dead, cpu_hotplug | ||
| 64 | * lock is dropped */ | ||
| 65 | #define CPU_BROKEN 0x000B /* CPU (unsigned)v did not die properly, | ||
| 66 | * perhaps due to preemption. */ | ||
| 67 | |||
| 68 | /* Used for CPU hotplug events occurring while tasks are frozen due to a suspend | ||
| 69 | * operation in progress | ||
| 70 | */ | ||
| 71 | #define CPU_TASKS_FROZEN 0x0010 | ||
| 72 | 58 | ||
| 73 | #define CPU_ONLINE_FROZEN (CPU_ONLINE | CPU_TASKS_FROZEN) | 59 | /* |
| 74 | #define CPU_UP_PREPARE_FROZEN (CPU_UP_PREPARE | CPU_TASKS_FROZEN) | 60 | * These states are not related to the core CPU hotplug mechanism. They are |
| 75 | #define CPU_DEAD_FROZEN (CPU_DEAD | CPU_TASKS_FROZEN) | 61 | * used by various (sub)architectures to track internal state |
| 62 | */ | ||
| 63 | #define CPU_ONLINE 0x0002 /* CPU is up */ | ||
| 64 | #define CPU_UP_PREPARE 0x0003 /* CPU coming up */ | ||
| 65 | #define CPU_DEAD 0x0007 /* CPU dead */ | ||
| 66 | #define CPU_DEAD_FROZEN 0x0008 /* CPU timed out on unplug */ | ||
| 67 | #define CPU_POST_DEAD 0x0009 /* CPU successfully unplugged */ | ||
| 68 | #define CPU_BROKEN 0x000B /* CPU did not die properly */ | ||
| 76 | 69 | ||
| 77 | #ifdef CONFIG_SMP | 70 | #ifdef CONFIG_SMP |
| 78 | extern bool cpuhp_tasks_frozen; | 71 | extern bool cpuhp_tasks_frozen; |
