mirror of
https://github.com/xen-project/xen.git
synced 2026-10-30 03:00:05 +01:00
bitkeeper revision 1.1159.212.96 (4204aff5pQipffND8_37kyj01pfiWQ)
Hand merge changes to schedule.c Signed-off-by: michael.fetterman@cl.cam.ac.uk
This commit is contained in:
commit
52c1b8b3dc
1 file changed
+7
-7
@@ -373,13 +373,6 @@ void __enter_scheduler(void)
|
||||
task_slice_t next_slice;
|
||||
s32 r_time; /* time for new dom to run */
|
||||
|
||||
if ( !is_idle_task(current->domain) )
|
||||
{
|
||||
LOCK_BIGLOCK(current->domain);
|
||||
cleanup_writable_pagetable(prev->domain);
|
||||
UNLOCK_BIGLOCK(current->domain);
|
||||
}
|
||||
|
||||
perfc_incrc(sched_run);
|
||||
|
||||
spin_lock_irq(&schedule_data[cpu].schedule_lock);
|
||||
@@ -429,6 +422,13 @@ void __enter_scheduler(void)
|
||||
|
||||
perfc_incrc(sched_ctx);
|
||||
|
||||
if ( !is_idle_task(current->domain) )
|
||||
{
|
||||
LOCK_BIGLOCK(current->domain);
|
||||
cleanup_writable_pagetable(prev->domain);
|
||||
UNLOCK_BIGLOCK(current->domain);
|
||||
}
|
||||
|
||||
#if defined(WAKE_HISTO)
|
||||
if ( !is_idle_task(next) && next->wokenup ) {
|
||||
ulong diff = (ulong)(now - next->wokenup);
|
||||
|
||||