xref: /openbmc/linux/kernel/smpboot.h (revision 29d5e047)
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);
1129d5e047SThomas Gleixner #else
1229d5e047SThomas Gleixner static inline struct task_struct *idle_thread_get(unsigned int cpu) { return NULL; }
1329d5e047SThomas Gleixner static inline void idle_thread_set_boot_cpu(void) { }
1429d5e047SThomas Gleixner #endif
1529d5e047SThomas Gleixner 
1638498a67SThomas Gleixner #endif
17