aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen/sched-if.h
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2010-04-14 12:03:27 +0100
committerKeir Fraser <keir.fraser@citrix.com>2010-04-14 12:03:27 +0100
commitbe9a0806e197f4fd3fa64d6535e74e16d4338a83 (patch)
tree4a6a4f6544b9663e00da1f294d9aa81d2615449a /xen/include/xen/sched-if.h
parentf426678bf2ebd676770a01092636d481b9a8f20b (diff)
downloadxen-be9a0806e197f4fd3fa64d6535e74e16d4338a83.tar.gz
xen-be9a0806e197f4fd3fa64d6535e74e16d4338a83.tar.bz2
xen-be9a0806e197f4fd3fa64d6535e74e16d4338a83.zip
credit2: Add context_saved scheduler callback
Because credit2 shares a runqueue between several cpus, it needs to know when a scheduled-out process has finally been context-switched away so that it can be added to the runqueue again. (Otherwise it may be grabbed by another processor before the context has been properly saved.) 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 ed05757730..352e43f5ef 100644
--- a/xen/include/xen/sched-if.h
+++ b/xen/include/xen/sched-if.h
@@ -70,6 +70,7 @@ struct scheduler {
void (*sleep) (struct vcpu *);
void (*wake) (struct vcpu *);
+ void (*context_saved) (struct vcpu *);
struct task_slice (*do_schedule) (s_time_t);