lkml.org 
[lkml]   [2009]   [Jan]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] x86: make 32bit MAX_HARDIRQSS_PER_CPU to be NR_VECTORS

Impact: clean up to be same as 64bit

32bit is use per-cpu vector too, so don't use default NR_IRQS

Signed-off-by: Yinghai Lu <yinghai@kernel.org>

---
arch/x86/include/asm/hardirq_32.h | 3 +++
arch/x86/include/asm/irq_vectors.h | 4 ++--
2 files changed, 5 insertions(+), 2 deletions(-)

Index: linux-2.6/arch/x86/include/asm/hardirq_32.h
===================================================================
--- linux-2.6.orig/arch/x86/include/asm/hardirq_32.h
+++ linux-2.6/arch/x86/include/asm/hardirq_32.h
@@ -20,6 +20,9 @@ typedef struct {

DECLARE_PER_CPU(irq_cpustat_t, irq_stat);

+/* We can have at most NR_VECTORS irqs routed to a cpu at a time */
+#define MAX_HARDIRQS_PER_CPU NR_VECTORS
+
#define __ARCH_IRQ_STAT
#define __IRQ_STAT(cpu, member) (per_cpu(irq_stat, cpu).member)


\
 
 \ /
  Last update: 2009-01-12 20:57    [W:0.071 / U:0.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site