diff options
Diffstat (limited to 'include/linux/notifier.h')
| -rw-r--r-- | include/linux/notifier.h | 34 |
1 files changed, 2 insertions, 32 deletions
diff --git a/include/linux/notifier.h b/include/linux/notifier.h index c0688b0168b3..9eb25fc0145b 100644 --- a/include/linux/notifier.h +++ b/include/linux/notifier.h | |||
| @@ -185,6 +185,8 @@ static inline int notifier_to_errno(int ret) | |||
| 185 | * VC switch chains (for loadable kernel svgalib VC switch helpers) etc... | 185 | * VC switch chains (for loadable kernel svgalib VC switch helpers) etc... |
| 186 | */ | 186 | */ |
| 187 | 187 | ||
| 188 | /* CPU notfiers are defined in include/linux/cpu.h. */ | ||
| 189 | |||
| 188 | /* netdevice notifier chain. Please remember to update the rtnetlink | 190 | /* netdevice notifier chain. Please remember to update the rtnetlink |
| 189 | * notification exclusion list in rtnetlink_event() when adding new | 191 | * notification exclusion list in rtnetlink_event() when adding new |
| 190 | * types. | 192 | * types. |
| @@ -220,38 +222,6 @@ static inline int notifier_to_errno(int ret) | |||
| 220 | 222 | ||
| 221 | #define NETLINK_URELEASE 0x0001 /* Unicast netlink socket released */ | 223 | #define NETLINK_URELEASE 0x0001 /* Unicast netlink socket released */ |
| 222 | 224 | ||
| 223 | #define CPU_ONLINE 0x0002 /* CPU (unsigned)v is up */ | ||
| 224 | #define CPU_UP_PREPARE 0x0003 /* CPU (unsigned)v coming up */ | ||
| 225 | #define CPU_UP_CANCELED 0x0004 /* CPU (unsigned)v NOT coming up */ | ||
| 226 | #define CPU_DOWN_PREPARE 0x0005 /* CPU (unsigned)v going down */ | ||
| 227 | #define CPU_DOWN_FAILED 0x0006 /* CPU (unsigned)v NOT going down */ | ||
| 228 | #define CPU_DEAD 0x0007 /* CPU (unsigned)v dead */ | ||
| 229 | #define CPU_DYING 0x0008 /* CPU (unsigned)v not running any task, | ||
| 230 | * not handling interrupts, soon dead. | ||
| 231 | * Called on the dying cpu, interrupts | ||
| 232 | * are already disabled. Must not | ||
| 233 | * sleep, must not fail */ | ||
| 234 | #define CPU_POST_DEAD 0x0009 /* CPU (unsigned)v dead, cpu_hotplug | ||
| 235 | * lock is dropped */ | ||
| 236 | #define CPU_STARTING 0x000A /* CPU (unsigned)v soon running. | ||
| 237 | * Called on the new cpu, just before | ||
| 238 | * enabling interrupts. Must not sleep, | ||
| 239 | * must not fail */ | ||
| 240 | |||
| 241 | /* Used for CPU hotplug events occurring while tasks are frozen due to a suspend | ||
| 242 | * operation in progress | ||
| 243 | */ | ||
| 244 | #define CPU_TASKS_FROZEN 0x0010 | ||
| 245 | |||
| 246 | #define CPU_ONLINE_FROZEN (CPU_ONLINE | CPU_TASKS_FROZEN) | ||
| 247 | #define CPU_UP_PREPARE_FROZEN (CPU_UP_PREPARE | CPU_TASKS_FROZEN) | ||
| 248 | #define CPU_UP_CANCELED_FROZEN (CPU_UP_CANCELED | CPU_TASKS_FROZEN) | ||
| 249 | #define CPU_DOWN_PREPARE_FROZEN (CPU_DOWN_PREPARE | CPU_TASKS_FROZEN) | ||
| 250 | #define CPU_DOWN_FAILED_FROZEN (CPU_DOWN_FAILED | CPU_TASKS_FROZEN) | ||
| 251 | #define CPU_DEAD_FROZEN (CPU_DEAD | CPU_TASKS_FROZEN) | ||
| 252 | #define CPU_DYING_FROZEN (CPU_DYING | CPU_TASKS_FROZEN) | ||
| 253 | #define CPU_STARTING_FROZEN (CPU_STARTING | CPU_TASKS_FROZEN) | ||
| 254 | |||
| 255 | /* Hibernation and suspend events */ | 225 | /* Hibernation and suspend events */ |
| 256 | #define PM_HIBERNATION_PREPARE 0x0001 /* Going to hibernate */ | 226 | #define PM_HIBERNATION_PREPARE 0x0001 /* Going to hibernate */ |
| 257 | #define PM_POST_HIBERNATION 0x0002 /* Hibernation finished */ | 227 | #define PM_POST_HIBERNATION 0x0002 /* Hibernation finished */ |
