1 /* softirq.h: 64-bit Sparc soft IRQ support.
3 * Copyright (C) 1997, 1998 David S. Miller (davem@caip.rutgers.edu)
6 #ifndef __SPARC64_SOFTIRQ_H
7 #define __SPARC64_SOFTIRQ_H
9 #include <linux/config.h>
10 #include <asm/atomic.h>
11 #include <asm/hardirq.h>
12 #include <asm/system.h> /* for membar() */
15 extern unsigned int __local_bh_count
;
16 #define local_bh_count(cpu) __local_bh_count
18 #define local_bh_count(cpu) (cpu_data[cpu].bh_count)
21 #define local_bh_disable() (local_bh_count(smp_processor_id())++)
22 #define local_bh_enable() (local_bh_count(smp_processor_id())--)
24 #define in_softirq() (local_bh_count(smp_processor_id()) != 0)
26 #endif /* !(__SPARC64_SOFTIRQ_H) */