diff options
author | Yinghai Lu <yinghai@kernel.org> | 2009-01-12 20:39:24 -0500 |
---|---|---|
committer | Mike Travis <travis@sgi.com> | 2009-01-12 20:39:24 -0500 |
commit | 4a046d1754ee6ebb6f399696805ed61ea0444d4c (patch) | |
tree | 9b9e8e63d9490aea4c2f06263ad541cb8115eb63 /arch/x86/include/asm/irq_vectors.h | |
parent | e65e49d0f3714f4a6a42f6f6a19926ba33fcda75 (diff) |
x86: arch_probe_nr_irqs
Impact: save RAM with large NR_CPUS, get smaller nr_irqs
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Mike Travis <travis@sgi.com>
Diffstat (limited to 'arch/x86/include/asm/irq_vectors.h')
-rw-r--r-- | arch/x86/include/asm/irq_vectors.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/x86/include/asm/irq_vectors.h b/arch/x86/include/asm/irq_vectors.h index 602361ad0e7..a16a2ab2b42 100644 --- a/arch/x86/include/asm/irq_vectors.h +++ b/arch/x86/include/asm/irq_vectors.h | |||
@@ -115,14 +115,11 @@ | |||
115 | # endif | 115 | # endif |
116 | #else | 116 | #else |
117 | 117 | ||
118 | /* defined as a macro so nr_irqs = max_nr_irqs(nr_cpu_ids) can be used */ | 118 | # define NR_IRQS \ |
119 | # define max_nr_irqs(nr_cpus) \ | 119 | ((8 * NR_CPUS) > (32 * MAX_IO_APICS) ? \ |
120 | ((8 * nr_cpus) > (32 * MAX_IO_APICS) ? \ | ||
121 | (NR_VECTORS + (8 * NR_CPUS)) : \ | 120 | (NR_VECTORS + (8 * NR_CPUS)) : \ |
122 | (NR_VECTORS + (32 * MAX_IO_APICS))) \ | 121 | (NR_VECTORS + (32 * MAX_IO_APICS))) \ |
123 | 122 | ||
124 | # define NR_IRQS max_nr_irqs(NR_CPUS) | ||
125 | |||
126 | #endif | 123 | #endif |
127 | 124 | ||
128 | #elif defined(CONFIG_X86_VOYAGER) | 125 | #elif defined(CONFIG_X86_VOYAGER) |