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 <asm/atomic.h>
10 #include <asm/hardirq.h>
11 #include <asm/system.h> /* for membar() */
13 #define local_bh_disable() (local_bh_count(smp_processor_id())++)
14 #define local_bh_enable() (local_bh_count(smp_processor_id())--)
16 #define in_softirq() (local_bh_count(smp_processor_id()) != 0)
18 #endif /* !(__SPARC64_SOFTIRQ_H) */