diff options
author | Isaku Yamahata <yamahata@valinux.co.jp> | 2008-05-19 09:13:40 -0400 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2008-05-27 18:09:30 -0400 |
commit | 213060a4d6991a95d0b9344406d195be3464accf (patch) | |
tree | b74ead50ae0ae8ca2cfc20df5ad2e5d04a90432d /include/asm-ia64/irq.h | |
parent | 4df8d22bbbb16ccfa4e10cc068135183c9e5e006 (diff) |
[IA64] pvops: paravirtualize NR_IRQS
Make NR_IRQ overridable by each pv instances.
Pv instance may need each own number of irqs so that
NR_IRQS should be the maximum number of nr_irqs each
pv instances need.
Cc: Jes Sorensen <jes@sgi.com>
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'include/asm-ia64/irq.h')
-rw-r--r-- | include/asm-ia64/irq.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/include/asm-ia64/irq.h b/include/asm-ia64/irq.h index a66d26827cbb..3627116fb0e2 100644 --- a/include/asm-ia64/irq.h +++ b/include/asm-ia64/irq.h | |||
@@ -13,14 +13,7 @@ | |||
13 | 13 | ||
14 | #include <linux/types.h> | 14 | #include <linux/types.h> |
15 | #include <linux/cpumask.h> | 15 | #include <linux/cpumask.h> |
16 | 16 | #include <asm-ia64/nr-irqs.h> | |
17 | #define NR_VECTORS 256 | ||
18 | |||
19 | #if (NR_VECTORS + 32 * NR_CPUS) < 1024 | ||
20 | #define NR_IRQS (NR_VECTORS + 32 * NR_CPUS) | ||
21 | #else | ||
22 | #define NR_IRQS 1024 | ||
23 | #endif | ||
24 | 17 | ||
25 | static __inline__ int | 18 | static __inline__ int |
26 | irq_canonicalize (int irq) | 19 | irq_canonicalize (int irq) |