Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef _ASM_IRQ_VECTORS_LIMITS_H |
| 2 | #define _ASM_IRQ_VECTORS_LIMITS_H |
| 3 | |
Jeremy Fitzhardinge | 03f0c2f | 2007-07-17 18:37:03 -0700 | [diff] [blame] | 4 | #if defined(CONFIG_X86_IO_APIC) || defined(CONFIG_PARAVIRT) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 5 | #define NR_IRQS 224 |
| 6 | # if (224 >= 32 * NR_CPUS) |
| 7 | # define NR_IRQ_VECTORS NR_IRQS |
| 8 | # else |
| 9 | # define NR_IRQ_VECTORS (32 * NR_CPUS) |
| 10 | # endif |
| 11 | #else |
| 12 | #define NR_IRQS 16 |
| 13 | #define NR_IRQ_VECTORS NR_IRQS |
| 14 | #endif |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 15 | |
| 16 | #endif /* _ASM_IRQ_VECTORS_LIMITS_H */ |