aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen/sched-if.h
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2010-08-09 16:35:27 +0100
committerKeir Fraser <keir.fraser@citrix.com>2010-08-09 16:35:27 +0100
commit49094cac1b418fef528c3d3991230eccb4cdd513 (patch)
tree5adbe79d5c33b80321dc2546ffe17fc5fa766122 /xen/include/xen/sched-if.h
parent22bcc5f006e8d68a9ea30b6cf871097b5536b00f (diff)
downloadxen-49094cac1b418fef528c3d3991230eccb4cdd513.tar.gz
xen-49094cac1b418fef528c3d3991230eccb4cdd513.tar.bz2
xen-49094cac1b418fef528c3d3991230eccb4cdd513.zip
scheduler: Add a per-scheduler yield callback
Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
Diffstat (limited to 'xen/include/xen/sched-if.h')
-rw-r--r--xen/include/xen/sched-if.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/xen/include/xen/sched-if.h b/xen/include/xen/sched-if.h
index 4fbf80c612..3808344d11 100644
--- a/xen/include/xen/sched-if.h
+++ b/xen/include/xen/sched-if.h
@@ -107,6 +107,7 @@ struct scheduler {
void (*sleep) (const struct scheduler *, struct vcpu *);
void (*wake) (const struct scheduler *, struct vcpu *);
+ void (*yield) (const struct scheduler *, struct vcpu *);
void (*context_saved) (const struct scheduler *, struct vcpu *);
struct task_slice (*do_schedule) (const struct scheduler *, s_time_t,