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-changelog

[Xen-changelog] [xen-unstable] credit2: Avoid use of cpu_possible_map

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] credit2: Avoid use of cpu_possible_map
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 19 May 2010 05:15:48 -0700
Delivery-date: Wed, 19 May 2010 05:18:26 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1273911407 -3600
# Node ID b59663d61e825b33fde3e58325e23b5839c302e1
# Parent  6180488ef81f7ef071cb08b61e72461f126cadf9
credit2: Avoid use of cpu_possible_map

Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 xen/common/sched_credit2.c |   11 +----------
 1 files changed, 1 insertion(+), 10 deletions(-)

diff -r 6180488ef81f -r b59663d61e82 xen/common/sched_credit2.c
--- a/xen/common/sched_credit2.c        Sat May 15 08:40:03 2010 +0100
+++ b/xen/common/sched_credit2.c        Sat May 15 09:16:47 2010 +0100
@@ -1127,19 +1127,10 @@ static void
 static void
 make_runq_map(struct csched_private *prv)
 {
-    int cpu, cpu_count=0;
-
     /* FIXME: Read pcpu layout and do this properly */
-    for_each_possible_cpu( cpu )
-    {
-        prv->runq_map[cpu] = 0;
-        cpu_count++;
-    }
     prv->runq_count = 1;
-
-    /* Move to the init code...? */
     prv->rqd[0].cpu_min = 0;
-    prv->rqd[0].cpu_max = cpu_count;
+    prv->rqd[0].cpu_max = NR_CPUS;
 }
 
 static int

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] credit2: Avoid use of cpu_possible_map, Xen patchbot-unstable <=