xref: /openbmc/linux/kernel/smpboot.h (revision 3bb5d2ee)
138498a67SThomas Gleixner #ifndef SMPBOOT_H
238498a67SThomas Gleixner #define SMPBOOT_H
338498a67SThomas Gleixner 
429d5e047SThomas Gleixner struct task_struct;
529d5e047SThomas Gleixner 
638498a67SThomas Gleixner int smpboot_prepare(unsigned int cpu);
738498a67SThomas Gleixner 
829d5e047SThomas Gleixner #ifdef CONFIG_GENERIC_SMP_IDLE_THREAD
929d5e047SThomas Gleixner struct task_struct *idle_thread_get(unsigned int cpu);
1029d5e047SThomas Gleixner void idle_thread_set_boot_cpu(void);
113bb5d2eeSSuresh Siddha void idle_threads_init(void);
1229d5e047SThomas Gleixner #else
1329d5e047SThomas Gleixner static inline struct task_struct *idle_thread_get(unsigned int cpu) { return NULL; }
1429d5e047SThomas Gleixner static inline void idle_thread_set_boot_cpu(void) { }
153bb5d2eeSSuresh Siddha static inline void idle_threads_init(unsigned int cpu) { }
1629d5e047SThomas Gleixner #endif
1729d5e047SThomas Gleixner 
1838498a67SThomas Gleixner #endif
19