1 #ifndef _ASM_IA64_SOFTIRQ_H
2 #define _ASM_IA64_SOFTIRQ_H
5 * Copyright (C) 1998-2001 Hewlett-Packard Co
6 * David Mosberger-Tang <davidm@hpl.hp.com>
8 #include <asm/hardirq.h>
10 #define __local_bh_enable() do { barrier(); really_local_bh_count()--; } while (0)
12 #define local_bh_disable() do { really_local_bh_count()++; barrier(); } while (0)
13 #define local_bh_enable() \
15 __local_bh_enable(); \
16 if (__builtin_expect(local_softirq_pending(), 0) && really_local_bh_count() == 0) \
21 #define in_softirq() (really_local_bh_count() != 0)
23 #endif /* _ASM_IA64_SOFTIRQ_H */