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 1 of 3] credit2: Make fake runq map initilization exp

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH 1 of 3] credit2: Make fake runq map initilization explicit
From: George Dunlap <george.dunlap@xxxxxxxxxxxxx>
Date: Tue, 26 Oct 2010 11:22:08 +0100
Cc: george.dunlap@xxxxxxxxxxxxx
Delivery-date: Tue, 26 Oct 2010 03:24:49 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <patchbomb.1288088527@gdunlap-desktop>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <patchbomb.1288088527@gdunlap-desktop>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mercurial-patchbomb/1.4.3
Signed-off-by: George Dunlap <george.dunlap@xxxxxxxxxxxxx>

diff -r 36a317494429 -r 861eb3d63f06 xen/common/sched_credit2.c
--- a/xen/common/sched_credit2.c        Mon Oct 25 18:15:28 2010 +0100
+++ b/xen/common/sched_credit2.c        Tue Oct 26 11:06:12 2010 +0100
@@ -1131,10 +1131,14 @@
 static void
 make_runq_map(struct csched_private *prv)
 {
+    int i;
     /* FIXME: Read pcpu layout and do this properly */
     prv->runq_count = 1;
     prv->rqd[0].cpu_min = 0;
     prv->rqd[0].cpu_max = NR_CPUS;
+
+    for (i=0; i<NR_CPUS; i++)
+        prv->runq_map[i]=0;
 }
 
 static int

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

<Prev in Thread] Current Thread [Next in Thread>