summaryrefslogtreecommitdiffstats
path: root/include/asm-mips64/hardirq.h
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2000-03-07 15:45:24 +0000
committerRalf Baechle <ralf@linux-mips.org>2000-03-07 15:45:24 +0000
commit9f9f3e6e8548a596697778337110a423c384b6f3 (patch)
tree5dd4b290ef532cf5ecb058e1a92cd3435afeac8c /include/asm-mips64/hardirq.h
parentd5c9a365ee7d2fded249aa5abfc5e89587583029 (diff)
Merge with Linux 2.3.49.
Diffstat (limited to 'include/asm-mips64/hardirq.h')
-rw-r--r--include/asm-mips64/hardirq.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/include/asm-mips64/hardirq.h b/include/asm-mips64/hardirq.h
index 7200ad062..29d780328 100644
--- a/include/asm-mips64/hardirq.h
+++ b/include/asm-mips64/hardirq.h
@@ -1,4 +1,4 @@
-/* $Id: hardirq.h,v 1.4 2000/02/23 00:41:38 ralf Exp $
+/* $Id: hardirq.h,v 1.5 2000/03/02 02:37:13 ralf Exp $
*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
@@ -13,6 +13,20 @@
#include <linux/threads.h>
#include <linux/irq.h>
+typedef struct {
+ unsigned long __local_irq_count;
+ unsigned long __local_bh_count;
+ unsigned long __pad[14];
+} ____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)
+
/*
* Are we in an interrupt context? Either doing bottom half
* or hardware interrupt processing?