Blame view

kernel/smpboot.h 564 Bytes
38498a67a   Thomas Gleixner   smp: Add generic ...
1
2
  #ifndef SMPBOOT_H
  #define SMPBOOT_H
29d5e0476   Thomas Gleixner   smp: Provide gene...
3
  struct task_struct;
29d5e0476   Thomas Gleixner   smp: Provide gene...
4
5
6
  #ifdef CONFIG_GENERIC_SMP_IDLE_THREAD
  struct task_struct *idle_thread_get(unsigned int cpu);
  void idle_thread_set_boot_cpu(void);
3bb5d2ee3   Suresh Siddha   smp, idle: Alloca...
7
  void idle_threads_init(void);
29d5e0476   Thomas Gleixner   smp: Provide gene...
8
9
10
  #else
  static inline struct task_struct *idle_thread_get(unsigned int cpu) { return NULL; }
  static inline void idle_thread_set_boot_cpu(void) { }
43a18b1e5   Thomas Gleixner   smp: Fix idle_thr...
11
  static inline void idle_threads_init(void) { }
29d5e0476   Thomas Gleixner   smp: Provide gene...
12
  #endif
f97f8f06a   Thomas Gleixner   smpboot: Provide ...
13
14
15
  int smpboot_create_threads(unsigned int cpu);
  void smpboot_park_threads(unsigned int cpu);
  void smpboot_unpark_threads(unsigned int cpu);
38498a67a   Thomas Gleixner   smp: Add generic ...
16
  #endif