[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Reduce size of IRQ name arrays -- NR_CPUS not NR_IRQS.



ChangeSet 1.1278, 2005/04/06 09:07:50+01:00, kaf24@xxxxxxxxxxxxxxxxxxxx

        Reduce size of IRQ name arrays -- NR_CPUS not NR_IRQS.
        Signed-off-by: Don Fry <brazilnut@xxxxxxxxxx>
        Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>



 smpboot.c |    6 +++---
 time.c    |    2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)


diff -Nru a/linux-2.6.11-xen-sparse/arch/xen/i386/kernel/smpboot.c 
b/linux-2.6.11-xen-sparse/arch/xen/i386/kernel/smpboot.c
--- a/linux-2.6.11-xen-sparse/arch/xen/i386/kernel/smpboot.c    2005-04-06 
05:02:48 -04:00
+++ b/linux-2.6.11-xen-sparse/arch/xen/i386/kernel/smpboot.c    2005-04-06 
05:02:48 -04:00
@@ -444,7 +444,7 @@
 }
 
 static DEFINE_PER_CPU(int, ldebug_irq);
-static char ldebug_name[NR_IRQS][15];
+static char ldebug_name[NR_CPUS][15];
 
 void ldebug_setup(void)
 {
@@ -1335,8 +1335,8 @@
 
 static DEFINE_PER_CPU(int, resched_irq);
 static DEFINE_PER_CPU(int, callfunc_irq);
-static char resched_name[NR_IRQS][15];
-static char callfunc_name[NR_IRQS][15];
+static char resched_name[NR_CPUS][15];
+static char callfunc_name[NR_CPUS][15];
 
 void __init smp_intr_init(void)
 {
diff -Nru a/linux-2.6.11-xen-sparse/arch/xen/i386/kernel/time.c 
b/linux-2.6.11-xen-sparse/arch/xen/i386/kernel/time.c
--- a/linux-2.6.11-xen-sparse/arch/xen/i386/kernel/time.c       2005-04-06 
05:02:48 -04:00
+++ b/linux-2.6.11-xen-sparse/arch/xen/i386/kernel/time.c       2005-04-06 
05:02:48 -04:00
@@ -762,7 +762,7 @@
 }
 
 #ifdef CONFIG_SMP
-static char timer_name[NR_IRQS][15];
+static char timer_name[NR_CPUS][15];
 void local_setup_timer(void)
 {
        int seq, cpu = smp_processor_id();

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.