diff options
author | Juergen Gross <juergen.gross@ts.fujitsu.com> | 2012-01-24 14:19:58 +0000 |
---|---|---|
committer | Juergen Gross <juergen.gross@ts.fujitsu.com> | 2012-01-24 14:19:58 +0000 |
commit | 9b80635f9dd46b584f04c8e948a71c48bd412f96 (patch) | |
tree | 65d633f3bdd797f2207ecd2fef863ccf48c2d07c /xen/common/sched_credit2.c | |
parent | 04b9829949d79e753c8047f4ef620a82b1743349 (diff) | |
download | xen-9b80635f9dd46b584f04c8e948a71c48bd412f96.tar.gz xen-9b80635f9dd46b584f04c8e948a71c48bd412f96.tar.bz2 xen-9b80635f9dd46b584f04c8e948a71c48bd412f96.zip |
introduce and use common macros for selecting cpupool based cpumasks
There are several instances of the same construct finding the cpumask
for a cpupool. Use macros instead.
Signed-off-by: juergen.gross@ts.fujitsu.com
Committed-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/common/sched_credit2.c')
-rw-r--r-- | xen/common/sched_credit2.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/xen/common/sched_credit2.c b/xen/common/sched_credit2.c index ac2be2a268..785303b259 100644 --- a/xen/common/sched_credit2.c +++ b/xen/common/sched_credit2.c @@ -169,8 +169,6 @@ integer_param("sched_credit2_migrate_resist", opt_migrate_resist); ((struct csched_private *)((_ops)->sched_data)) #define CSCHED_VCPU(_vcpu) ((struct csched_vcpu *) (_vcpu)->sched_priv) #define CSCHED_DOM(_dom) ((struct csched_dom *) (_dom)->sched_priv) -#define CSCHED_CPUONLINE(_pool) \ - (((_pool) == NULL) ? &cpupool_free_cpus : (_pool)->cpu_valid) /* CPU to runq_id macro */ #define c2r(_ops, _cpu) (CSCHED_PRIV(_ops)->runq_map[(_cpu)]) /* CPU to runqueue struct macro */ |