diff options
Diffstat (limited to 'arch/powerpc/kernel/irq.c')
-rw-r--r-- | arch/powerpc/kernel/irq.c | 25 |
1 files changed, 2 insertions, 23 deletions
diff --git a/arch/powerpc/kernel/irq.c b/arch/powerpc/kernel/irq.c index 6ac8612da3c3..d972decf0324 100644 --- a/arch/powerpc/kernel/irq.c +++ b/arch/powerpc/kernel/irq.c | |||
@@ -77,22 +77,12 @@ static int ppc_spurious_interrupts; | |||
77 | EXPORT_SYMBOL(__irq_offset_value); | 77 | EXPORT_SYMBOL(__irq_offset_value); |
78 | atomic_t ppc_n_lost_interrupts; | 78 | atomic_t ppc_n_lost_interrupts; |
79 | 79 | ||
80 | #ifndef CONFIG_PPC_MERGE | ||
81 | #define NR_MASK_WORDS ((NR_IRQS + 31) / 32) | ||
82 | unsigned long ppc_cached_irq_mask[NR_MASK_WORDS]; | ||
83 | #endif | ||
84 | |||
85 | #ifdef CONFIG_TAU_INT | 80 | #ifdef CONFIG_TAU_INT |
86 | extern int tau_initialized; | 81 | extern int tau_initialized; |
87 | extern int tau_interrupts(int); | 82 | extern int tau_interrupts(int); |
88 | #endif | 83 | #endif |
89 | #endif /* CONFIG_PPC32 */ | 84 | #endif /* CONFIG_PPC32 */ |
90 | 85 | ||
91 | #if defined(CONFIG_SMP) && !defined(CONFIG_PPC_MERGE) | ||
92 | extern atomic_t ipi_recv; | ||
93 | extern atomic_t ipi_sent; | ||
94 | #endif | ||
95 | |||
96 | #ifdef CONFIG_PPC64 | 86 | #ifdef CONFIG_PPC64 |
97 | EXPORT_SYMBOL(irq_desc); | 87 | EXPORT_SYMBOL(irq_desc); |
98 | 88 | ||
@@ -216,21 +206,14 @@ int show_interrupts(struct seq_file *p, void *v) | |||
216 | skip: | 206 | skip: |
217 | spin_unlock_irqrestore(&desc->lock, flags); | 207 | spin_unlock_irqrestore(&desc->lock, flags); |
218 | } else if (i == NR_IRQS) { | 208 | } else if (i == NR_IRQS) { |
219 | #ifdef CONFIG_PPC32 | 209 | #if defined(CONFIG_PPC32) && defined(CONFIG_TAU_INT) |
220 | #ifdef CONFIG_TAU_INT | ||
221 | if (tau_initialized){ | 210 | if (tau_initialized){ |
222 | seq_puts(p, "TAU: "); | 211 | seq_puts(p, "TAU: "); |
223 | for_each_online_cpu(j) | 212 | for_each_online_cpu(j) |
224 | seq_printf(p, "%10u ", tau_interrupts(j)); | 213 | seq_printf(p, "%10u ", tau_interrupts(j)); |
225 | seq_puts(p, " PowerPC Thermal Assist (cpu temp)\n"); | 214 | seq_puts(p, " PowerPC Thermal Assist (cpu temp)\n"); |
226 | } | 215 | } |
227 | #endif | 216 | #endif /* CONFIG_PPC32 && CONFIG_TAU_INT*/ |
228 | #if defined(CONFIG_SMP) && !defined(CONFIG_PPC_MERGE) | ||
229 | /* should this be per processor send/receive? */ | ||
230 | seq_printf(p, "IPI (recv/sent): %10u/%u\n", | ||
231 | atomic_read(&ipi_recv), atomic_read(&ipi_sent)); | ||
232 | #endif | ||
233 | #endif /* CONFIG_PPC32 */ | ||
234 | seq_printf(p, "BAD: %10u\n", ppc_spurious_interrupts); | 217 | seq_printf(p, "BAD: %10u\n", ppc_spurious_interrupts); |
235 | } | 218 | } |
236 | return 0; | 219 | return 0; |
@@ -454,8 +437,6 @@ void do_softirq(void) | |||
454 | * IRQ controller and virtual interrupts | 437 | * IRQ controller and virtual interrupts |
455 | */ | 438 | */ |
456 | 439 | ||
457 | #ifdef CONFIG_PPC_MERGE | ||
458 | |||
459 | static LIST_HEAD(irq_hosts); | 440 | static LIST_HEAD(irq_hosts); |
460 | static DEFINE_SPINLOCK(irq_big_lock); | 441 | static DEFINE_SPINLOCK(irq_big_lock); |
461 | static DEFINE_PER_CPU(unsigned int, irq_radix_reader); | 442 | static DEFINE_PER_CPU(unsigned int, irq_radix_reader); |
@@ -1114,8 +1095,6 @@ static int __init irq_debugfs_init(void) | |||
1114 | __initcall(irq_debugfs_init); | 1095 | __initcall(irq_debugfs_init); |
1115 | #endif /* CONFIG_VIRQ_DEBUG */ | 1096 | #endif /* CONFIG_VIRQ_DEBUG */ |
1116 | 1097 | ||
1117 | #endif /* CONFIG_PPC_MERGE */ | ||
1118 | |||
1119 | #ifdef CONFIG_PPC64 | 1098 | #ifdef CONFIG_PPC64 |
1120 | static int __init setup_noirqdistrib(char *str) | 1099 | static int __init setup_noirqdistrib(char *str) |
1121 | { | 1100 | { |