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 | 29d5e04 | 2012-04-20 13:05:45 +0000 | [diff] [blame] | 6 | #ifdef CONFIG_GENERIC_SMP_IDLE_THREAD |
| 7 | struct task_struct *idle_thread_get(unsigned int cpu); |
| 8 | void idle_thread_set_boot_cpu(void); |
Suresh Siddha | 3bb5d2e | 2012-04-20 17:08:50 -0700 | [diff] [blame] | 9 | void idle_threads_init(void); |
Thomas Gleixner | 29d5e04 | 2012-04-20 13:05:45 +0000 | [diff] [blame] | 10 | #else |
| 11 | static inline struct task_struct *idle_thread_get(unsigned int cpu) { return NULL; } |
| 12 | static inline void idle_thread_set_boot_cpu(void) { } |
Thomas Gleixner | 43a18b1 | 2012-05-04 12:52:25 +0200 | [diff] [blame] | 13 | static inline void idle_threads_init(void) { } |
Thomas Gleixner | 29d5e04 | 2012-04-20 13:05:45 +0000 | [diff] [blame] | 14 | #endif |
| 15 | |
Thomas Gleixner | f97f8f0 | 2012-07-16 10:42:36 +0000 | [diff] [blame] | 16 | int smpboot_create_threads(unsigned int cpu); |
Thomas Gleixner | 931ef16 | 2016-02-26 18:43:36 +0000 | [diff] [blame^] | 17 | int smpboot_park_threads(unsigned int cpu); |
| 18 | int smpboot_unpark_threads(unsigned int cpu); |
Thomas Gleixner | f97f8f0 | 2012-07-16 10:42:36 +0000 | [diff] [blame] | 19 | |
Thomas Gleixner | 38498a6 | 2012-04-20 13:05:44 +0000 | [diff] [blame] | 20 | #endif |