X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Fasm-ia64%2Firq.h;h=a66d26827cbbe23c2864c053f81d6e5332a99a04;hb=d0478d0ad7a58f36afa03e57afe14955c2943466;hp=dbe86c0bbce5f896f25e4934228ac2c36228227a;hpb=d344c5e0856ad03278d8700b503762dbc8b86e12;p=linux-2.6 diff --git a/include/asm-ia64/irq.h b/include/asm-ia64/irq.h index dbe86c0bbc..a66d26827c 100644 --- a/include/asm-ia64/irq.h +++ b/include/asm-ia64/irq.h @@ -11,13 +11,16 @@ * 02/29/00 D.Mosberger moved most things into hw_irq.h */ -#define NR_IRQS 256 -#define NR_IRQ_VECTORS NR_IRQS +#include +#include -/* - * IRQ line status macro IRQ_PER_CPU is used - */ -#define ARCH_HAS_IRQ_PER_CPU +#define NR_VECTORS 256 + +#if (NR_VECTORS + 32 * NR_CPUS) < 1024 +#define NR_IRQS (NR_VECTORS + 32 * NR_CPUS) +#else +#define NR_IRQS 1024 +#endif static __inline__ int irq_canonicalize (int irq) @@ -30,9 +33,9 @@ irq_canonicalize (int irq) return ((irq == 2) ? 9 : irq); } -extern void disable_irq (unsigned int); -extern void disable_irq_nosync (unsigned int); -extern void enable_irq (unsigned int); extern void set_irq_affinity_info (unsigned int irq, int dest, int redir); +bool is_affinity_mask_valid(cpumask_t cpumask); + +#define is_affinity_mask_valid is_affinity_mask_valid #endif /* _ASM_IA64_IRQ_H */