diff options
author | Jan Beulich <jbeulich@suse.com> | 2011-09-18 00:22:57 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2011-09-18 00:22:57 +0100 |
commit | 6ac9f9c55cce7e94445120ee8751a165dfe2d9d3 (patch) | |
tree | 564d7e5fb09327622ca78c5202212c90baca88b5 /xen/common/keyhandler.c | |
parent | 645bf0d3fb22c91491c73dd16d184e8e986e1251 (diff) | |
download | xen-6ac9f9c55cce7e94445120ee8751a165dfe2d9d3.tar.gz xen-6ac9f9c55cce7e94445120ee8751a165dfe2d9d3.tar.bz2 xen-6ac9f9c55cce7e94445120ee8751a165dfe2d9d3.zip |
convert more literal uses of cpumask_t to pointers
This is particularly relevant as the number of CPUs to be supported
increases (as recently happened for the default thereof).
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Diffstat (limited to 'xen/common/keyhandler.c')
-rw-r--r-- | xen/common/keyhandler.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/xen/common/keyhandler.c b/xen/common/keyhandler.c index f5c4adc1b6..3d1c67eeed 100644 --- a/xen/common/keyhandler.c +++ b/xen/common/keyhandler.c @@ -207,10 +207,10 @@ static struct keyhandler reboot_machine_keyhandler = { .desc = "reboot machine" }; -static void cpuset_print(char *set, int size, cpumask_t mask) +static void cpuset_print(char *set, int size, const cpumask_t *mask) { *set++ = '{'; - set += cpulist_scnprintf(set, size-2, mask); + set += cpulist_scnprintf(set, size-2, *mask); *set++ = '}'; *set++ = '\0'; } @@ -244,7 +244,7 @@ static void dump_domains(unsigned char key) { unsigned int i; printk("General information for domain %u:\n", d->domain_id); - cpuset_print(tmpstr, sizeof(tmpstr), *d->domain_dirty_cpumask); + cpuset_print(tmpstr, sizeof(tmpstr), d->domain_dirty_cpumask); printk(" refcnt=%d dying=%d nr_pages=%d xenheap_pages=%d " "dirty_cpus=%s max_pages=%u\n", atomic_read(&d->refcnt), d->is_dying, @@ -278,9 +278,9 @@ static void dump_domains(unsigned char key) v->pause_flags, v->poll_evtchn, vcpu_info(v, evtchn_upcall_pending), vcpu_info(v, evtchn_upcall_mask)); - cpuset_print(tmpstr, sizeof(tmpstr), *v->vcpu_dirty_cpumask); + cpuset_print(tmpstr, sizeof(tmpstr), v->vcpu_dirty_cpumask); printk("dirty_cpus=%s ", tmpstr); - cpuset_print(tmpstr, sizeof(tmpstr), *v->cpu_affinity); + cpuset_print(tmpstr, sizeof(tmpstr), v->cpu_affinity); printk("cpu_affinity=%s\n", tmpstr); arch_dump_vcpu_info(v); periodic_timer_print(tmpstr, sizeof(tmpstr), v->periodic_period); |