diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-03-07 15:45:24 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-03-07 15:45:24 +0000 |
commit | 9f9f3e6e8548a596697778337110a423c384b6f3 (patch) | |
tree | 5dd4b290ef532cf5ecb058e1a92cd3435afeac8c /include/asm-mips/hardirq.h | |
parent | d5c9a365ee7d2fded249aa5abfc5e89587583029 (diff) |
Merge with Linux 2.3.49.
Diffstat (limited to 'include/asm-mips/hardirq.h')
-rw-r--r-- | include/asm-mips/hardirq.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/include/asm-mips/hardirq.h b/include/asm-mips/hardirq.h index 68697ef74..f3854a267 100644 --- a/include/asm-mips/hardirq.h +++ b/include/asm-mips/hardirq.h @@ -1,4 +1,4 @@ -/* $Id: hardirq.h,v 1.7 2000/02/23 00:41:38 ralf Exp $ +/* $Id: hardirq.h,v 1.8 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 int __local_irq_count; + unsigned int __local_bh_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) +#define nmi_counter(cpu) (irq_stat[(cpu)].__nmi_counter) + /* * Are we in an interrupt context? Either doing bottom half * or hardware interrupt processing? |