aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen/sched-if.h
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2010-05-04 22:42:34 +0100
committerKeir Fraser <keir.fraser@citrix.com>2010-05-04 22:42:34 +0100
commit837a388c915f26280e404e12b4a940a912e8eca7 (patch)
treeaa6891953476a3a27d4e5777c5bc3425a016a6fe /xen/include/xen/sched-if.h
parent4cd740cf56f0801f3a3d92cb8c5fb7d930b0dd27 (diff)
downloadxen-837a388c915f26280e404e12b4a940a912e8eca7.tar.gz
xen-837a388c915f26280e404e12b4a940a912e8eca7.tar.bz2
xen-837a388c915f26280e404e12b4a940a912e8eca7.zip
scheduler: const-ify references to 'struct scheduler' where possible.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'xen/include/xen/sched-if.h')
-rw-r--r--xen/include/xen/sched-if.h44
1 files changed, 23 insertions, 21 deletions
diff --git a/xen/include/xen/sched-if.h b/xen/include/xen/sched-if.h
index ae9f4c3c24..7ab636646c 100644
--- a/xen/include/xen/sched-if.h
+++ b/xen/include/xen/sched-if.h
@@ -90,36 +90,38 @@ struct scheduler {
void *sched_data; /* global data pointer */
int (*init) (struct scheduler *, int);
- void (*deinit) (struct scheduler *);
+ void (*deinit) (const struct scheduler *);
- void (*free_vdata) (struct scheduler *, void *);
- void * (*alloc_vdata) (struct scheduler *, struct vcpu *,
+ void (*free_vdata) (const struct scheduler *, void *);
+ void * (*alloc_vdata) (const struct scheduler *, struct vcpu *,
void *);
- void (*free_pdata) (struct scheduler *, void *, int);
- void * (*alloc_pdata) (struct scheduler *, int);
- void (*free_domdata) (struct scheduler *, void *);
- void * (*alloc_domdata) (struct scheduler *, struct domain *);
+ void (*free_pdata) (const struct scheduler *, void *, int);
+ void * (*alloc_pdata) (const struct scheduler *, int);
+ void (*free_domdata) (const struct scheduler *, void *);
+ void * (*alloc_domdata) (const struct scheduler *, struct domain *);
- int (*init_domain) (struct scheduler *, struct domain *);
- void (*destroy_domain) (struct scheduler *, struct domain *);
+ int (*init_domain) (const struct scheduler *, struct domain *);
+ void (*destroy_domain) (const struct scheduler *, struct domain *);
- void (*insert_vcpu) (struct scheduler *, struct vcpu *);
- void (*destroy_vcpu) (struct scheduler *, struct vcpu *);
+ void (*insert_vcpu) (const struct scheduler *, struct vcpu *);
+ void (*destroy_vcpu) (const struct scheduler *, struct vcpu *);
- void (*sleep) (struct scheduler *, struct vcpu *);
- void (*wake) (struct scheduler *, struct vcpu *);
- void (*context_saved) (struct scheduler *, struct vcpu *);
+ void (*sleep) (const struct scheduler *, struct vcpu *);
+ void (*wake) (const struct scheduler *, struct vcpu *);
+ void (*context_saved) (const struct scheduler *, struct vcpu *);
- struct task_slice (*do_schedule) (struct scheduler *, s_time_t);
+ struct task_slice (*do_schedule) (const struct scheduler *, s_time_t);
- int (*pick_cpu) (struct scheduler *, struct vcpu *);
- int (*adjust) (struct scheduler *, struct domain *,
+ int (*pick_cpu) (const struct scheduler *, struct vcpu *);
+ int (*adjust) (const struct scheduler *, struct domain *,
struct xen_domctl_scheduler_op *);
- void (*dump_settings) (struct scheduler *);
- void (*dump_cpu_state) (struct scheduler *, int);
+ int (*adjust_global) (const struct scheduler *,
+ struct xen_sysctl_scheduler_op *);
+ void (*dump_settings) (const struct scheduler *);
+ void (*dump_cpu_state) (const struct scheduler *, int);
- void (*tick_suspend) (struct scheduler *, unsigned int);
- void (*tick_resume) (struct scheduler *, unsigned int);
+ void (*tick_suspend) (const struct scheduler *, unsigned int);
+ void (*tick_resume) (const struct scheduler *, unsigned int);
};
struct cpupool