WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] sparse linux time.c nit

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] sparse linux time.c nit
From: Don Fry <brazilnut@xxxxxxxxxx>
Date: Tue, 5 Apr 2005 17:02:07 -0700
Delivery-date: Wed, 06 Apr 2005 00:02:25 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.6i
This reduces the amount of space required for the timer_name from
7k to 120 bytes for an 8 CPU system.

Signed-off-by Don Fry <brazilnut@xxxxxxxxxx>

--- linux-2.6.11-xen-sparse/arch/xen/i386/kernel/orig.time.c    2005-04-05 
11:13:35.000000000 -0700
+++ linux-2.6.11-xen-sparse/arch/xen/i386/kernel/time.c 2005-04-05 
16:56:37.000000000 -0700
@@ -762,7 +762,7 @@ void time_resume(void)
 }
 
 #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();

-- 
Don Fry
brazilnut@xxxxxxxxxx

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] sparse linux time.c nit, Don Fry <=