]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
softirq: allocate less vectors
authorAlexey Dobriyan <adobriyan@gmail.com>
Sat, 6 Sep 2008 18:04:36 +0000 (20:04 +0200)
committerIngo Molnar <mingo@elte.hu>
Sat, 6 Sep 2008 18:04:36 +0000 (20:04 +0200)
We don't need whole 32 of them, only NR_SOFTIRQS.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/interrupt.h
kernel/softirq.c

index 58ff4e74b2f362bcc2078e76e9c5d10bdfba1f83..54b3623434eca45d1f3758a787d4763aed069b2d 100644 (file)
@@ -252,6 +252,8 @@ enum
        HRTIMER_SOFTIRQ,
 #endif
        RCU_SOFTIRQ,    /* Preferable RCU should always be the last softirq */
+
+       NR_SOFTIRQS
 };
 
 /* softirq mask and active fields moved to irq_cpustat_t in
index c506f266a6b90ee9d887b9eeecdd45061e74ef1f..82e32aadedd84fc3b29dec79257af09608aa8194 100644 (file)
@@ -46,7 +46,7 @@ irq_cpustat_t irq_stat[NR_CPUS] ____cacheline_aligned;
 EXPORT_SYMBOL(irq_stat);
 #endif
 
-static struct softirq_action softirq_vec[32] __cacheline_aligned_in_smp;
+static struct softirq_action softirq_vec[NR_SOFTIRQS] __cacheline_aligned_in_smp;
 
 static DEFINE_PER_CPU(struct task_struct *, ksoftirqd);