Thomas Gleixner | 33d588d | 2012-04-20 13:05:44 +0000 | [diff] [blame] | 1 | #ifndef SMPBOOT_H |
| 2 | #define SMPBOOT_H |
| 3 | |
Thomas Gleixner | c5989bd | 2012-04-20 13:05:45 +0000 | [diff] [blame] | 4 | struct task_struct; |
| 5 | |
Thomas Gleixner | 33d588d | 2012-04-20 13:05:44 +0000 | [diff] [blame] | 6 | int smpboot_prepare(unsigned int cpu); |
| 7 | |
Thomas Gleixner | c5989bd | 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 | ad6a2c7 | 2012-04-20 17:08:50 -0700 | [diff] [blame] | 11 | void idle_threads_init(void); |
Thomas Gleixner | c5989bd | 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) { } |
Suresh Siddha | ad6a2c7 | 2012-04-20 17:08:50 -0700 | [diff] [blame] | 15 | static inline void idle_threads_init(unsigned int cpu) { } |
Thomas Gleixner | c5989bd | 2012-04-20 13:05:45 +0000 | [diff] [blame] | 16 | #endif |
| 17 | |
Thomas Gleixner | a63b4cc | 2012-07-16 10:42:36 +0000 | [diff] [blame] | 18 | int smpboot_create_threads(unsigned int cpu); |
| 19 | void smpboot_park_threads(unsigned int cpu); |
| 20 | void smpboot_unpark_threads(unsigned int cpu); |
| 21 | |
Thomas Gleixner | 33d588d | 2012-04-20 13:05:44 +0000 | [diff] [blame] | 22 | #endif |