bitkeeper revision 1.924 (40bbb502xR03c4VC3QbKW-RZeIrXzg)

Cset exclude: mwilli2@equilibrium.research.intel-research.net|ChangeSet|20040521100822|20051
This commit is contained in:
iap10@labyrinth.cl.cam.ac.uk committed 2004-05-31 22:43:14 +00:00
1 parent f8f33ce162
commit ec52a9cf62
2 files changed
+3 -7

No files matched your search

+1 -3
View File
@@ -170,7 +170,6 @@ void bvt_wake_up(struct task_struct *p)
static void bvt_do_block(struct task_struct *p)
{
BVT_INFO(p)->warpback = 0;
__del_from_runqueue(p);
}
/* Control the scheduler. */
@@ -277,8 +276,7 @@ static task_slice_t bvt_do_schedule(s_time_t now)
__calc_evt(prev_inf);
if( __task_on_runqueue(prev))
__del_from_runqueue(prev);
__del_from_runqueue(prev);
if ( likely(prev->state == TASK_RUNNING) )
__add_to_runqueue_tail(prev);
+2 -4
View File
@@ -224,7 +224,6 @@ long do_block(void)
ASSERT(current->domain != IDLE_DOMAIN_ID);
current->shared_info->vcpu_data[0].evtchn_upcall_mask = 0;
current->state = TASK_INTERRUPTIBLE;
SCHED_OP(do_block, current);
TRACE_2D(TRC_SCHED_BLOCK, current->domain, current);
__enter_scheduler();
return 0;
@@ -462,10 +461,9 @@ asmlinkage void __enter_scheduler(void)
{
/* this check is needed to avoid a race condition */
if ( signal_pending(prev) )
{
prev->state = TASK_RUNNING;
SCHED_OP(wake_up, prev);
}
else
SCHED_OP(do_block, prev);
}
prev->cpu_time += now - prev->lastschd;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.