patch-2.3.99-pre2 linux/arch/alpha/kernel/irq_alpha.c
Next file: linux/arch/alpha/kernel/irq_pyxis.c
Previous file: linux/arch/alpha/kernel/irq.c
Back to the patch index
Back to the overall index
- Lines: 35
- Date:
Fri Mar 17 13:02:05 2000
- Orig file:
v2.3.99-pre1/linux/arch/alpha/kernel/irq_alpha.c
- Orig date:
Thu Mar 2 14:36:22 2000
diff -u --recursive --new-file v2.3.99-pre1/linux/arch/alpha/kernel/irq_alpha.c linux/arch/alpha/kernel/irq_alpha.c
@@ -6,6 +6,7 @@
#include <linux/init.h>
#include <linux/sched.h>
#include <linux/irq.h>
+#include <linux/kernel_stat.h>
#include <asm/machvec.h>
#include <asm/dma.h>
@@ -61,14 +62,22 @@
break;
case 1:
#ifdef CONFIG_SMP
- cpu_data[smp_processor_id()].smp_local_irq_count++;
+ {
+ long cpu;
smp_percpu_timer_interrupt(®s);
- if (smp_processor_id() == boot_cpuid)
-#endif
+ cpu = smp_processor_id();
+ if (cpu != boot_cpuid) {
+ irq_attempt(cpu, RTC_IRQ)++;
+ kstat.irqs[cpu][RTC_IRQ]++;
+ } else {
handle_irq(RTC_IRQ, ®s);
+ }
+ }
+#else
+ handle_irq(RTC_IRQ, ®s);
+#endif
return;
case 2:
- irq_err_count++;
alpha_mv.machine_check(vector, la_ptr, ®s);
return;
case 3:
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)