patch-2.4.0-test6 linux/include/asm-ppc/hardirq.h
Next file: linux/include/asm-ppc/page.h
Previous file: linux/include/asm-mips64/system.h
Back to the patch index
Back to the overall index
- Lines: 25
- Date:
Fri Aug 4 16:15:37 2000
- Orig file:
v2.4.0-test5/linux/include/asm-ppc/hardirq.h
- Orig date:
Thu Jul 27 17:38:02 2000
diff -u --recursive --new-file v2.4.0-test5/linux/include/asm-ppc/hardirq.h linux/include/asm-ppc/hardirq.h
@@ -4,19 +4,16 @@
#include <linux/config.h>
#include <asm/smp.h>
+/* entry.S is sensitive to the offsets of these fields */
typedef struct {
+ unsigned int __softirq_active;
+ unsigned int __softirq_mask;
unsigned int __local_irq_count;
unsigned int __local_bh_count;
- unsigned int __pad[6];
+ unsigned int __syscall_count;
} ____cacheline_aligned irq_cpustat_t;
-extern irq_cpustat_t irq_stat [NR_CPUS];
-
-/*
- * Simple wrappers reducing source bloat
- */
-#define local_irq_count(cpu) (irq_stat[(cpu)].__local_irq_count)
-#define local_bh_count(cpu) (irq_stat[(cpu)].__local_bh_count)
+#include <linux/irq_cpustat.h> /* Standard mappings for irq_cpustat_t above */
/*
* Are we in an interrupt context? Either doing bottom half
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)