aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/cpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/cpu.h')
-rw-r--r--include/linux/cpu.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/cpu.h b/include/linux/cpu.h
index 4260e8594bd7..4744ef915acd 100644
--- a/include/linux/cpu.h
+++ b/include/linux/cpu.h
@@ -95,6 +95,8 @@ enum {
95 * Called on the new cpu, just before 95 * Called on the new cpu, just before
96 * enabling interrupts. Must not sleep, 96 * enabling interrupts. Must not sleep,
97 * must not fail */ 97 * must not fail */
98#define CPU_BROKEN 0x000C /* CPU (unsigned)v did not die properly,
99 * perhaps due to preemption. */
98 100
99/* Used for CPU hotplug events occurring while tasks are frozen due to a suspend 101/* Used for CPU hotplug events occurring while tasks are frozen due to a suspend
100 * operation in progress 102 * operation in progress
@@ -271,4 +273,14 @@ void arch_cpu_idle_enter(void);
271void arch_cpu_idle_exit(void); 273void arch_cpu_idle_exit(void);
272void arch_cpu_idle_dead(void); 274void arch_cpu_idle_dead(void);
273 275
276DECLARE_PER_CPU(bool, cpu_dead_idle);
277
278int cpu_report_state(int cpu);
279int cpu_check_up_prepare(int cpu);
280void cpu_set_state_online(int cpu);
281#ifdef CONFIG_HOTPLUG_CPU
282bool cpu_wait_death(unsigned int cpu, int seconds);
283bool cpu_report_death(void);
284#endif /* #ifdef CONFIG_HOTPLUG_CPU */
285
274#endif /* _LINUX_CPU_H_ */ 286#endif /* _LINUX_CPU_H_ */