aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen/sched-if.h
diff options
context:
space:
mode:
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2006-06-01 18:10:00 +0100
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2006-06-01 18:10:00 +0100
commitd884b107781707cfa9a0120e410d97a4f6fed895 (patch)
tree581ed59fa6daaf2e1099a6e0f6f06fc8d570f9af /xen/include/xen/sched-if.h
parentcf220cf03b417cd3b2cbfdf3db199acee5ebab0a (diff)
downloadxen-d884b107781707cfa9a0120e410d97a4f6fed895.tar.gz
xen-d884b107781707cfa9a0120e410d97a4f6fed895.tar.bz2
xen-d884b107781707cfa9a0120e410d97a4f6fed895.zip
Domain creation/destruction cleanups.
1. Move alloc/dealloc routines to domain.[ch] 2. Merge alloc_task/add_vcpu schedops -> init_vcpu 3. Merge free_task/remove_vcpu schedops -> destroy_domain Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/include/xen/sched-if.h')
-rw-r--r--xen/include/xen/sched-if.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/xen/include/xen/sched-if.h b/xen/include/xen/sched-if.h
index 4c8232a13b..ec082b37be 100644
--- a/xen/include/xen/sched-if.h
+++ b/xen/include/xen/sched-if.h
@@ -60,14 +60,17 @@ struct scheduler {
void (*init) (void);
void (*tick) (unsigned int cpu);
- int (*alloc_task) (struct vcpu *);
- void (*add_task) (struct vcpu *);
- void (*free_task) (struct domain *);
- void (*rem_task) (struct vcpu *);
+
+ int (*init_vcpu) (struct vcpu *);
+ void (*destroy_domain) (struct domain *);
+
void (*sleep) (struct vcpu *);
void (*wake) (struct vcpu *);
+
int (*set_affinity) (struct vcpu *, cpumask_t *);
+
struct task_slice (*do_schedule) (s_time_t);
+
int (*control) (struct sched_ctl_cmd *);
int (*adjdom) (struct domain *,
struct sched_adjdom_cmd *);