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-01-06 18:14:29 +0100
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2006-01-06 18:14:29 +0100
commite92cab943b93948da893420fba82cead07b6943e (patch)
treec7071c252034bd2eb2a3a969ae93124cea5a42b2 /xen/include/xen/sched-if.h
parent59505bb144301aed6e5084b5193a278854189678 (diff)
downloadxen-e92cab943b93948da893420fba82cead07b6943e.tar.gz
xen-e92cab943b93948da893420fba82cead07b6943e.tar.bz2
xen-e92cab943b93948da893420fba82cead07b6943e.zip
Change the context-switch interface. Get rid of
context_switch_finalise(). Instead provide a back-call context_switch_done() for situations where arch-specific context_switch() function does not return to the caller, or needs to do some parts of state restoration with interrupts enabled. Get rid of ugly hack in arch/ia64. 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.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/xen/include/xen/sched-if.h b/xen/include/xen/sched-if.h
index 26d7bada8a..86ca33591c 100644
--- a/xen/include/xen/sched-if.h
+++ b/xen/include/xen/sched-if.h
@@ -13,11 +13,12 @@
struct schedule_data {
spinlock_t schedule_lock; /* spinlock protecting curr */
- struct vcpu *curr; /* current task */
- struct vcpu *idle; /* idle task for this cpu */
+ struct vcpu *curr; /* current task */
+ struct vcpu *idle; /* idle task for this cpu */
void *sched_priv;
struct ac_timer s_timer; /* scheduling timer */
unsigned long tick; /* current periodic 'tick' */
+ int context_switch_in_progress;
#ifdef BUCKETS
u32 hist[BUCKETS]; /* for scheduler latency histogram */
#endif