2012-04-20 13:05:44 +00:00
|
|
|
#ifndef SMPBOOT_H
|
|
|
|
|
#define SMPBOOT_H
|
|
|
|
|
|
2012-04-20 13:05:45 +00:00
|
|
|
struct task_struct;
|
|
|
|
|
|
2012-04-20 13:05:44 +00:00
|
|
|
int smpboot_prepare(unsigned int cpu);
|
|
|
|
|
|
2012-04-20 13:05:45 +00:00
|
|
|
#ifdef CONFIG_GENERIC_SMP_IDLE_THREAD
|
|
|
|
|
struct task_struct *idle_thread_get(unsigned int cpu);
|
|
|
|
|
void idle_thread_set_boot_cpu(void);
|
2012-04-20 17:08:50 -07:00
|
|
|
void idle_threads_init(void);
|
2012-04-20 13:05:45 +00:00
|
|
|
#else
|
|
|
|
|
static inline struct task_struct *idle_thread_get(unsigned int cpu) { return NULL; }
|
|
|
|
|
static inline void idle_thread_set_boot_cpu(void) { }
|
2012-04-20 17:08:50 -07:00
|
|
|
static inline void idle_threads_init(unsigned int cpu) { }
|
2012-04-20 13:05:45 +00:00
|
|
|
#endif
|
|
|
|
|
|
2012-04-20 13:05:44 +00:00
|
|
|
#endif
|