blob: 7943bbbab917fcdfb7cd9220fde6c3009b397534 [file] [log] [blame]
Thomas Gleixner38498a62012-04-20 13:05:44 +00001#ifndef SMPBOOT_H
2#define SMPBOOT_H
3
Thomas Gleixner29d5e042012-04-20 13:05:45 +00004struct task_struct;
5
Thomas Gleixner38498a62012-04-20 13:05:44 +00006int smpboot_prepare(unsigned int cpu);
7
Thomas Gleixner29d5e042012-04-20 13:05:45 +00008#ifdef CONFIG_GENERIC_SMP_IDLE_THREAD
9struct task_struct *idle_thread_get(unsigned int cpu);
10void idle_thread_set_boot_cpu(void);
11#else
12static inline struct task_struct *idle_thread_get(unsigned int cpu) { return NULL; }
13static inline void idle_thread_set_boot_cpu(void) { }
14#endif
15
Thomas Gleixner38498a62012-04-20 13:05:44 +000016#endif