[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] credit2: Avoid use of cpu_possible_map
# 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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |