1 #ifndef _LINUX_STOP_MACHINE
2 #define _LINUX_STOP_MACHINE
7 #include <linux/list.h>
61 stwork->
fn(stwork->
arg);
85 static inline int try_stop_cpus(
const struct cpumask *cpumask,
99 #if defined(CONFIG_STOP_MACHINE) && defined(CONFIG_SMP)
114 int stop_machine(
int (*fn)(
void *),
void *
data,
const struct cpumask *
cpus);
125 int __stop_machine(
int (*fn)(
void *),
void *
data,
const struct cpumask *
cpus);
127 int stop_machine_from_inactive_cpu(
int (*fn)(
void *),
void *
data,
128 const struct cpumask *
cpus);
132 static inline int __stop_machine(
int (*fn)(
void *),
void *
data,
133 const struct cpumask *
cpus)
143 static inline int stop_machine(
int (*fn)(
void *),
void *
data,
144 const struct cpumask *
cpus)
146 return __stop_machine(fn, data, cpus);
149 static inline int stop_machine_from_inactive_cpu(
int (*fn)(
void *),
void *
data,
150 const struct cpumask *
cpus)
152 return __stop_machine(fn, data, cpus);