This commit was generated by cvs2svn to compensate for changes in r517,
[linux-2.6.git] / include / asm-ia64 / hardirq.h
1 #ifndef _ASM_IA64_HARDIRQ_H
2 #define _ASM_IA64_HARDIRQ_H
3
4 /*
5  * Modified 1998-2002, 2004 Hewlett-Packard Co
6  *      David Mosberger-Tang <davidm@hpl.hp.com>
7  */
8
9 #include <linux/config.h>
10
11 #include <linux/threads.h>
12 #include <linux/irq.h>
13
14 #include <asm/processor.h>
15
16 /*
17  * No irq_cpustat_t for IA-64.  The data is held in the per-CPU data structure.
18  */
19
20 #define __ARCH_IRQ_STAT 1
21
22 #define softirq_pending(cpu)            (cpu_data(cpu)->softirq_pending)
23 #define local_softirq_pending()         (local_cpu_data->softirq_pending)
24
25 #define HARDIRQ_BITS    14
26
27 /*
28  * The hardirq mask has to be large enough to have space for potentially all IRQ sources
29  * in the system nesting on a single CPU:
30  */
31 #if (1 << HARDIRQ_BITS) < NR_IRQS
32 # error HARDIRQ_BITS is too low!
33 #endif
34
35 extern void __iomem *ipi_base_addr;
36
37 #endif /* _ASM_IA64_HARDIRQ_H */