swh:1:snp:baebc2109e4a2ec22a1129a3859647e191d04df4
Raw File
Tip revision: ab03198fd8b2f82de6a7e0383c5ae1e2fb2807cf authored by Ben Hutchings on 22 November 2017, 01:51:52 UTC
Synthetic revision for Debian source package linux version 4.13.13-1~bpo9+1
Tip revision: ab03198
smpboot.h
#ifndef SMPBOOT_H
#define SMPBOOT_H

struct task_struct;

#ifdef CONFIG_GENERIC_SMP_IDLE_THREAD
struct task_struct *idle_thread_get(unsigned int cpu);
void idle_thread_set_boot_cpu(void);
void idle_threads_init(void);
#else
static inline struct task_struct *idle_thread_get(unsigned int cpu) { return NULL; }
static inline void idle_thread_set_boot_cpu(void) { }
static inline void idle_threads_init(void) { }
#endif

int smpboot_create_threads(unsigned int cpu);
int smpboot_park_threads(unsigned int cpu);
int smpboot_unpark_threads(unsigned int cpu);

void __init cpuhp_threads_init(void);

#endif
back to top