stop_machine: Remove deprecated stop_machine_run

Everyone should be using stop_machine() now. The staged API
transition helped life in linux-next.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

+1 -18
+1 -18
include/linux/stop_machine.h
··· 3 3 /* "Bogolock": stop the entire machine, disable interrupts. This is a 4 4 very heavy lock, which is equivalent to grabbing every spinlock 5 5 (and more). So the "read" side to such a lock is anything which 6 - diables preeempt. */ 6 + disables preeempt. */ 7 7 #include <linux/cpu.h> 8 8 #include <linux/cpumask.h> 9 9 #include <asm/system.h> 10 10 11 11 #if defined(CONFIG_STOP_MACHINE) && defined(CONFIG_SMP) 12 - 13 - /* Deprecated, but useful for transition. */ 14 - #define ALL_CPUS ~0U 15 12 16 13 /** 17 14 * stop_machine: freeze the machine on all CPUs and run this function ··· 47 50 return ret; 48 51 } 49 52 #endif /* CONFIG_SMP */ 50 - 51 - static inline int __deprecated stop_machine_run(int (*fn)(void *), void *data, 52 - unsigned int cpu) 53 - { 54 - /* If they don't care which cpu fn runs on, just pick one. */ 55 - if (cpu == NR_CPUS) 56 - return stop_machine(fn, data, NULL); 57 - else if (cpu == ~0U) 58 - return stop_machine(fn, data, &cpu_possible_map); 59 - else { 60 - cpumask_t cpus = cpumask_of_cpu(cpu); 61 - return stop_machine(fn, data, &cpus); 62 - } 63 - } 64 53 #endif /* _LINUX_STOP_MACHINE */