Thomas Gleixner | 38498a6 | 2012-04-20 13:05:44 +0000 | [diff] [blame] | 1 | #ifndef SMPBOOT_H |
| 2 | #define SMPBOOT_H |
| 3 | |
Thomas Gleixner | 29d5e04 | 2012-04-20 13:05:45 +0000 | [diff] [blame] | 4 | struct task_struct; |
| 5 | |
Thomas Gleixner | 38498a6 | 2012-04-20 13:05:44 +0000 | [diff] [blame] | 6 | int smpboot_prepare(unsigned int cpu); |
| 7 | |
Thomas Gleixner | 29d5e04 | 2012-04-20 13:05:45 +0000 | [diff] [blame] | 8 | #ifdef CONFIG_GENERIC_SMP_IDLE_THREAD |
| 9 | struct task_struct *idle_thread_get(unsigned int cpu); |
| 10 | void idle_thread_set_boot_cpu(void); |
Suresh Siddha | 3bb5d2e | 2012-04-20 17:08:50 -0700 | [diff] [blame] | 11 | void idle_threads_init(void); |
Thomas Gleixner | 29d5e04 | 2012-04-20 13:05:45 +0000 | [diff] [blame] | 12 | #else |
| 13 | static inline struct task_struct *idle_thread_get(unsigned int cpu) { return NULL; } |
| 14 | static inline void idle_thread_set_boot_cpu(void) { } |
Thomas Gleixner | 43a18b1 | 2012-05-04 12:52:25 +0200 | [diff] [blame] | 15 | static inline void idle_threads_init(void) { } |
Thomas Gleixner | 29d5e04 | 2012-04-20 13:05:45 +0000 | [diff] [blame] | 16 | #endif |
| 17 | |
Thomas Gleixner | 38498a6 | 2012-04-20 13:05:44 +0000 | [diff] [blame] | 18 | #endif |