aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen/sched.h
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2011-10-13 10:00:13 +0200
committerJan Beulich <jbeulich@suse.com>2011-10-13 10:00:13 +0200
commitb569c46bb3153903d59f3eeefc19ee046dab75e0 (patch)
tree53c94fb97f7fc70e658ac6d529e7ae9ab89b055b /xen/include/xen/sched.h
parent2a869011d4ee6e0adf5246734d148e7ad68a0d84 (diff)
downloadxen-b569c46bb3153903d59f3eeefc19ee046dab75e0.tar.gz
xen-b569c46bb3153903d59f3eeefc19ee046dab75e0.tar.bz2
xen-b569c46bb3153903d59f3eeefc19ee046dab75e0.zip
constify vcpu_set_affinity()'s second parameter
None of the callers actually make use of the function's returning of the old affinity through its second parameter, and eliminating this capability allows some callers to no longer use a local variable here, reducing their stack footprint significantly when building with large NR_CPUS. Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/include/xen/sched.h')
-rw-r--r--xen/include/xen/sched.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/include/xen/sched.h b/xen/include/xen/sched.h
index 784bcecdab..4b9dc56cfe 100644
--- a/xen/include/xen/sched.h
+++ b/xen/include/xen/sched.h
@@ -617,7 +617,7 @@ void scheduler_free(struct scheduler *sched);
int schedule_cpu_switch(unsigned int cpu, struct cpupool *c);
void vcpu_force_reschedule(struct vcpu *v);
int cpu_disable_scheduler(unsigned int cpu);
-int vcpu_set_affinity(struct vcpu *v, cpumask_t *affinity);
+int vcpu_set_affinity(struct vcpu *v, const cpumask_t *affinity);
void vcpu_runstate_get(struct vcpu *v, struct vcpu_runstate_info *runstate);
uint64_t get_cpu_idle_time(unsigned int cpu);