From: Mike Travis Date: Sun, 11 Jan 2009 06:24:07 +0000 (-0800) Subject: irq: initialize nr_irqs based on nr_cpu_ids X-Git-Tag: v2.6.30-rc1~3^2~6^2~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9332fccdedf8e09448f3b69b624211ae879f6c45;p=pandora-kernel.git irq: initialize nr_irqs based on nr_cpu_ids Impact: Reduce memory usage. This is the second half of the changes to make the irq_desc_ptrs be variable sized based on nr_cpu_ids. This is done by adding a new "max_nr_irqs" macro to irq_vectors.h (and a dummy in irqnr.h) to return a max NR_IRQS value based on NR_CPUS or nr_cpu_ids. This necessitated moving the define of MAX_IO_APICS to a separate file (asm/apicnum.h) so it could be included without the baggage of the other asm/apicdef.h declarations. Signed-off-by: Mike Travis --- Reading git-diff-tree failed