xref: /kernel/linux/linux-5.10/include/linux/sched/hotplug.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/include/linux/sched/
18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci#ifndef _LINUX_SCHED_HOTPLUG_H
38c2ecf20Sopenharmony_ci#define _LINUX_SCHED_HOTPLUG_H
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci/*
68c2ecf20Sopenharmony_ci * Scheduler interfaces for hotplug CPU support:
78c2ecf20Sopenharmony_ci */
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ciextern int sched_cpu_starting(unsigned int cpu);
108c2ecf20Sopenharmony_ciextern int sched_cpu_activate(unsigned int cpu);
118c2ecf20Sopenharmony_ciextern int sched_cpu_deactivate(unsigned int cpu);
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ci#ifdef CONFIG_HOTPLUG_CPU
148c2ecf20Sopenharmony_ciextern int sched_cpu_dying(unsigned int cpu);
158c2ecf20Sopenharmony_ci#else
168c2ecf20Sopenharmony_ci# define sched_cpu_dying	NULL
178c2ecf20Sopenharmony_ci#endif
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ci#ifdef CONFIG_HOTPLUG_CPU
208c2ecf20Sopenharmony_ciextern void idle_task_exit(void);
218c2ecf20Sopenharmony_ci#else
228c2ecf20Sopenharmony_cistatic inline void idle_task_exit(void) {}
238c2ecf20Sopenharmony_ci#endif
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ci#endif /* _LINUX_SCHED_HOTPLUG_H */
26

Indexes created Thu Nov 07 10:32:03 CST 2024