diff options
Diffstat (limited to 'kernel/stop_machine.c')
-rw-r--r-- | kernel/stop_machine.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/kernel/stop_machine.c b/kernel/stop_machine.c index 6f4e0e13f70c..0101aeef7ed7 100644 --- a/kernel/stop_machine.c +++ b/kernel/stop_machine.c | |||
@@ -11,7 +11,6 @@ | |||
11 | #include <linux/interrupt.h> | 11 | #include <linux/interrupt.h> |
12 | 12 | ||
13 | #include <asm/atomic.h> | 13 | #include <asm/atomic.h> |
14 | #include <asm/semaphore.h> | ||
15 | #include <asm/uaccess.h> | 14 | #include <asm/uaccess.h> |
16 | 15 | ||
17 | /* Since we effect priority and affinity (both of which are visible | 16 | /* Since we effect priority and affinity (both of which are visible |
@@ -35,7 +34,7 @@ static int stopmachine(void *cpu) | |||
35 | int irqs_disabled = 0; | 34 | int irqs_disabled = 0; |
36 | int prepared = 0; | 35 | int prepared = 0; |
37 | 36 | ||
38 | set_cpus_allowed(current, cpumask_of_cpu((int)(long)cpu)); | 37 | set_cpus_allowed_ptr(current, &cpumask_of_cpu((int)(long)cpu)); |
39 | 38 | ||
40 | /* Ack: we are alive */ | 39 | /* Ack: we are alive */ |
41 | smp_mb(); /* Theoretically the ack = 0 might not be on this CPU yet. */ | 40 | smp_mb(); /* Theoretically the ack = 0 might not be on this CPU yet. */ |
@@ -135,8 +134,7 @@ static void restart_machine(void) | |||
135 | preempt_enable_no_resched(); | 134 | preempt_enable_no_resched(); |
136 | } | 135 | } |
137 | 136 | ||
138 | struct stop_machine_data | 137 | struct stop_machine_data { |
139 | { | ||
140 | int (*fn)(void *); | 138 | int (*fn)(void *); |
141 | void *data; | 139 | void *data; |
142 | struct completion done; | 140 | struct completion done; |