diff options
author | Daniel Hellstrom <daniel@gaisler.com> | 2011-05-01 20:08:51 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-05-16 16:07:43 -0400 |
commit | d6d048192b1d22cb8f09da0cc936095ec2cb969c (patch) | |
tree | 1fcb2aac7a706074a59c329a2e25cac5cc171255 /arch/sparc/kernel/irq_32.c | |
parent | 2645e7219e88d1e2ab8b2939537bce36e6db9e8c (diff) |
sparc32: implement SMP IPIs using the generic functions
The current sparc32 SMP IPI generation is implemented the
cross call function. The cross call function uses IRQ15 the
NMI, this is has the effect that IPIs will interrupt IRQ
critical areas and hang the system. Typically on/after
spin_lock_irqsave calls can be aborted.
The cross call functionality must still exist to flush
cache/TLBS.
This patch provides CPU models a custom way to implement
generation of IPIs on the generic code's request. The
typical approach is to generate an IRQ for each IPI case.
After this patch each sparc32 SMP CPU model needs to
implement IPIs in order to function properly.
Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/kernel/irq_32.c')
-rw-r--r-- | arch/sparc/kernel/irq_32.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/sparc/kernel/irq_32.c b/arch/sparc/kernel/irq_32.c index 197e1ba85484..9b89d842913c 100644 --- a/arch/sparc/kernel/irq_32.c +++ b/arch/sparc/kernel/irq_32.c | |||
@@ -206,6 +206,16 @@ int arch_show_interrupts(struct seq_file *p, int prec) | |||
206 | { | 206 | { |
207 | int j; | 207 | int j; |
208 | 208 | ||
209 | #ifdef CONFIG_SMP | ||
210 | seq_printf(p, "RES: "); | ||
211 | for_each_online_cpu(j) | ||
212 | seq_printf(p, "%10u ", cpu_data(j).irq_resched_count); | ||
213 | seq_printf(p, " IPI rescheduling interrupts\n"); | ||
214 | seq_printf(p, "CAL: "); | ||
215 | for_each_online_cpu(j) | ||
216 | seq_printf(p, "%10u ", cpu_data(j).irq_call_count); | ||
217 | seq_printf(p, " IPI function call interrupts\n"); | ||
218 | #endif | ||
209 | seq_printf(p, "NMI: "); | 219 | seq_printf(p, "NMI: "); |
210 | for_each_online_cpu(j) | 220 | for_each_online_cpu(j) |
211 | seq_printf(p, "%10u ", cpu_data(j).counter); | 221 | seq_printf(p, "%10u ", cpu_data(j).counter); |