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