diff options
author | Milton Miller <miltonm@bga.com> | 2011-05-10 15:29:10 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2011-05-19 00:30:46 -0400 |
commit | f1072939b6dd01d038d47db0bdc01b33e5f90f28 (patch) | |
tree | 281747826833d254131a44bad9c954659137a5a8 /arch/powerpc/platforms/powermac/smp.c | |
parent | e04763713286b1e00e1c2a33fe2741caf9470f2b (diff) |
powerpc: Remove checks for MSG_ALL and MSG_ALL_BUT_SELF
Now that smp_ops->smp_message_pass is always called with an (online) cpu
number for the target remove the checks for MSG_ALL and MSG_ALL_BUT_SELF.
Signed-off-by: Milton Miller <miltonm@bga.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/platforms/powermac/smp.c')
-rw-r--r-- | arch/powerpc/platforms/powermac/smp.c | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/arch/powerpc/platforms/powermac/smp.c b/arch/powerpc/platforms/powermac/smp.c index 621d4b7755f2..c49e71926a54 100644 --- a/arch/powerpc/platforms/powermac/smp.c +++ b/arch/powerpc/platforms/powermac/smp.c | |||
@@ -186,21 +186,10 @@ irqreturn_t psurge_primary_intr(int irq, void *d) | |||
186 | return IRQ_HANDLED; | 186 | return IRQ_HANDLED; |
187 | } | 187 | } |
188 | 188 | ||
189 | static void smp_psurge_message_pass(int target, int msg) | 189 | static void smp_psurge_message_pass(int cpu, int msg) |
190 | { | 190 | { |
191 | int i; | 191 | set_bit(msg, &psurge_smp_message[cpu]); |
192 | 192 | psurge_set_ipi(cpu); | |
193 | if (num_online_cpus() < 2) | ||
194 | return; | ||
195 | |||
196 | for_each_online_cpu(i) { | ||
197 | if (target == MSG_ALL | ||
198 | || (target == MSG_ALL_BUT_SELF && i != smp_processor_id()) | ||
199 | || target == i) { | ||
200 | set_bit(msg, &psurge_smp_message[i]); | ||
201 | psurge_set_ipi(i); | ||
202 | } | ||
203 | } | ||
204 | } | 193 | } |
205 | 194 | ||
206 | /* | 195 | /* |