aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/sched_credit2.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2011-11-08 10:34:33 +0100
committerJan Beulich <jbeulich@suse.com>2011-11-08 10:34:33 +0100
commite82e07391c18eddbe7f6f969e4c7181468fe232a (patch)
tree225abf0d0bc5784009951f3647ab376bd3a7f873 /xen/common/sched_credit2.c
parentd814eb02551c8d5150947bc5418eff42ec93a07e (diff)
downloadxen-e82e07391c18eddbe7f6f969e4c7181468fe232a.tar.gz
xen-e82e07391c18eddbe7f6f969e4c7181468fe232a.tar.bz2
xen-e82e07391c18eddbe7f6f969e4c7181468fe232a.zip
eliminate cpu_set()
Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Keir Fraser <keir@xen.org> Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Diffstat (limited to 'xen/common/sched_credit2.c')
-rw-r--r--xen/common/sched_credit2.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/xen/common/sched_credit2.c b/xen/common/sched_credit2.c
index a933535570..2611e12f08 100644
--- a/xen/common/sched_credit2.c
+++ b/xen/common/sched_credit2.c
@@ -1725,7 +1725,7 @@ csched_schedule(
{
/* Update the idle mask if necessary */
if ( !cpumask_test_cpu(cpu, &rqd->idle) )
- cpu_set(cpu, rqd->idle);
+ cpumask_set_cpu(cpu, &rqd->idle);
/* Make sure avgload gets updated periodically even
* if there's no activity */
update_load(ops, rqd, NULL, 0, now);
@@ -1860,7 +1860,7 @@ static void activate_runqueue(struct csched_private *prv, int rqi)
INIT_LIST_HEAD(&rqd->runq);
spin_lock_init(&rqd->lock);
- cpu_set(rqi, prv->active_queues);
+ cpumask_set_cpu(rqi, &prv->active_queues);
}
static void deactivate_runqueue(struct csched_private *prv, int rqi)
@@ -1927,12 +1927,12 @@ static void init_pcpu(const struct scheduler *ops, int cpu)
/* Set the runqueue map */
prv->runq_map[cpu]=rqi;
- cpu_set(cpu, rqd->idle);
- cpu_set(cpu, rqd->active);
+ cpumask_set_cpu(cpu, &rqd->idle);
+ cpumask_set_cpu(cpu, &rqd->active);
spin_unlock(old_lock);
- cpu_set(cpu, prv->initialized);
+ cpumask_set_cpu(cpu, &prv->initialized);
spin_unlock_irqrestore(&prv->lock, flags);