patch-2.1.126 linux/include/asm-alpha/hardirq.h
Next file: linux/include/asm-alpha/hwrpb.h
Previous file: linux/include/asm-alpha/fcntl.h
Back to the patch index
Back to the overall index
- Lines: 29
- Date:
Mon Oct 12 11:40:13 1998
- Orig file:
v2.1.125/linux/include/asm-alpha/hardirq.h
- Orig date:
Wed Sep 9 14:51:10 1998
diff -u --recursive --new-file v2.1.125/linux/include/asm-alpha/hardirq.h linux/include/asm-alpha/hardirq.h
@@ -6,6 +6,7 @@
#include <linux/tasks.h>
extern unsigned int local_irq_count[NR_CPUS];
+extern unsigned long hardirq_no[NR_CPUS];
/*
* Are we in an interrupt context? Either doing bottom half
@@ -32,6 +33,7 @@
#include <asm/atomic.h>
#include <asm/spinlock.h>
+#include <asm/smp.h>
extern int global_irq_holder;
extern spinlock_t global_irq_lock;
@@ -50,10 +52,12 @@
{
++local_irq_count[cpu];
atomic_inc(&global_irq_count);
+ hardirq_no[cpu] |= 1L << irq; /* debugging only */
}
static inline void hardirq_exit(int cpu, int irq)
{
+ hardirq_no[cpu] &= ~(1L << irq); /* debugging only */
atomic_dec(&global_irq_count);
--local_irq_count[cpu];
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov