/* Public domain. */ #ifndef _LINUX_STOP_MACHINE_H #define _LINUX_STOP_MACHINE_H #include typedef int (*cpu_stop_fn_t)(void *arg); static inline int stop_machine(cpu_stop_fn_t fn, void *arg, void *cpus) { int r; u_long s = intr_disable(); r = (*fn)(arg); intr_restore(s); return r; } #endif