aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2011-10-21 09:43:35 +0200
committerJan Beulich <jbeulich@suse.com>2011-10-21 09:43:35 +0200
commitd4b41687ff590b3bf8ef0b2d5d9b0b1a15c0c10c (patch)
tree9921bad0084b6073901065f61168fed878e42e36 /xen/include/xen
parent985d4520485eaa412394a81b0bbb576f996d34b3 (diff)
downloadxen-d4b41687ff590b3bf8ef0b2d5d9b0b1a15c0c10c.tar.gz
xen-d4b41687ff590b3bf8ef0b2d5d9b0b1a15c0c10c.tar.bz2
xen-d4b41687ff590b3bf8ef0b2d5d9b0b1a15c0c10c.zip
cpupools: allocate CPU masks dynamically
Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/include/xen')
-rw-r--r--xen/include/xen/sched-if.h2
-rw-r--r--xen/include/xen/sched.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/xen/include/xen/sched-if.h b/xen/include/xen/sched-if.h
index 72a1293531..d9519f0d6c 100644
--- a/xen/include/xen/sched-if.h
+++ b/xen/include/xen/sched-if.h
@@ -192,7 +192,7 @@ extern const struct scheduler sched_arinc653_def;
struct cpupool
{
int cpupool_id;
- cpumask_t cpu_valid; /* all cpus assigned to pool */
+ cpumask_var_t cpu_valid; /* all cpus assigned to pool */
struct cpupool *next;
unsigned int n_dom;
struct scheduler *sched;
diff --git a/xen/include/xen/sched.h b/xen/include/xen/sched.h
index 4b9dc56cfe..3ba5495d11 100644
--- a/xen/include/xen/sched.h
+++ b/xen/include/xen/sched.h
@@ -664,7 +664,7 @@ int cpupool_do_sysctl(struct xen_sysctl_cpupool_op *op);
void schedule_dump(struct cpupool *c);
extern void dump_runq(unsigned char key);
-#define num_cpupool_cpus(c) (cpus_weight((c)->cpu_valid))
+#define num_cpupool_cpus(c) cpumask_weight((c)->cpu_valid)
#endif /* __SCHED_H__ */