Blame view

kernel/smpboot.h 640 Bytes
b24413180   Greg Kroah-Hartman   License cleanup: ...
1
  /* SPDX-License-Identifier: GPL-2.0 */
38498a67a   Thomas Gleixner   smp: Add generic ...
2
3
  #ifndef SMPBOOT_H
  #define SMPBOOT_H
29d5e0476   Thomas Gleixner   smp: Provide gene...
4
  struct task_struct;
29d5e0476   Thomas Gleixner   smp: Provide gene...
5
6
7
  #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...
8
  void idle_threads_init(void);
29d5e0476   Thomas Gleixner   smp: Provide gene...
9
10
11
  #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...
12
  static inline void idle_threads_init(void) { }
29d5e0476   Thomas Gleixner   smp: Provide gene...
13
  #endif
f97f8f06a   Thomas Gleixner   smpboot: Provide ...
14
  int smpboot_create_threads(unsigned int cpu);
931ef1633   Thomas Gleixner   cpu/hotplug: Unpa...
15
16
  int smpboot_park_threads(unsigned int cpu);
  int smpboot_unpark_threads(unsigned int cpu);
f97f8f06a   Thomas Gleixner   smpboot: Provide ...
17

4cb28ced2   Thomas Gleixner   cpu/hotplug: Crea...
18
  void __init cpuhp_threads_init(void);
38498a67a   Thomas Gleixner   smp: Add generic ...
19
  #endif