Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 978b0116 authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by Ingo Molnar
Browse files

softirq: allocate less vectors



We don't need whole 32 of them, only NR_SOFTIRQS.

Signed-off-by: default avatarAlexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 70bb0896
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -252,6 +252,8 @@ enum
	HRTIMER_SOFTIRQ,
	HRTIMER_SOFTIRQ,
#endif
#endif
	RCU_SOFTIRQ, 	/* Preferable RCU should always be the last softirq */
	RCU_SOFTIRQ, 	/* Preferable RCU should always be the last softirq */

	NR_SOFTIRQS
};
};


/* softirq mask and active fields moved to irq_cpustat_t in
/* softirq mask and active fields moved to irq_cpustat_t in
+1 −1
Original line number Original line Diff line number Diff line
@@ -46,7 +46,7 @@ irq_cpustat_t irq_stat[NR_CPUS] ____cacheline_aligned;
EXPORT_SYMBOL(irq_stat);
EXPORT_SYMBOL(irq_stat);
#endif
#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);
static DEFINE_PER_CPU(struct task_struct *, ksoftirqd);