Commit bf2002967775cbb233876d51ff94e8daa7e77858

Authored by Rusty Russell
1 parent 37a7c0f3e3

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>

Showing 1 changed file with 1 additions and 18 deletions Side-by-side Diff

include/linux/stop_machine.h
... ... @@ -3,16 +3,13 @@
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 12  
13   -/* Deprecated, but useful for transition. */
14   -#define ALL_CPUS ~0U
15   -
16 13 /**
17 14 * stop_machine: freeze the machine on all CPUs and run this function
18 15 * @fn: the function to run
... ... @@ -50,19 +47,5 @@
50 47 return ret;
51 48 }
52 49 #endif /* CONFIG_SMP */
53   -
54   -static inline int __deprecated stop_machine_run(int (*fn)(void *), void *data,
55   - unsigned int cpu)
56   -{
57   - /* If they don't care which cpu fn runs on, just pick one. */
58   - if (cpu == NR_CPUS)
59   - return stop_machine(fn, data, NULL);
60   - else if (cpu == ~0U)
61   - return stop_machine(fn, data, &cpu_possible_map);
62   - else {
63   - cpumask_t cpus = cpumask_of_cpu(cpu);
64   - return stop_machine(fn, data, &cpus);
65   - }
66   -}
67 50 #endif /* _LINUX_STOP_MACHINE */