Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 986 → Rev 987

/shark/trunk/ports/first/modules/grubstar.c
284,12 → 284,13
if (lev->cap_lev != NIL) {
kern_event_delete(lev->cap_lev);
lev->cap_lev = NIL;
SUBTIMESPEC(&schedule_time, &lev->cap_lasttime, &ty);
tx = TIMESPEC2USEC(&ty);
}
 
if (TIMESPEC_A_LT_B(&lev->cap_lasttime,&schedule_time)) {
SUBTIMESPEC(&schedule_time, &lev->cap_lasttime, &ty);
tx = TIMESPEC2USEC(&ty);
}
// recalculate the new effective last reclaiming
mul32div32to32(tx,(lev->U - lev->Uf),lev->U,b->last_reclaiming);
//b->avail -= tx;
444,8 → 445,10
/* The budget is not empty, another task is already into the
master module, so the task is inserted at the end of the budget
queue */
iq_insertlast(p,&lev->b[budget->b].tasks);
kern_printf("(NP act %d cur %d, flag %d)",p, lev->b[budget->b].current, lev->b[budget->b].flags );
iq_insertlast(p,&lev->b[budget->b].tasks);
 
}
 
#ifdef GRUBSTAR_DEBUG
473,7 → 476,7
level_table[ lev->scheduling_level ]->
private_extract(lev->scheduling_level, p);
 
iq_extract(p, &lev->b[lev->tb[p]].tasks);
//iq_extract(p, &lev->b[lev->tb[p]].tasks);
//lev->b[lev->tb[p]].current = NIL;
 
/* check if the buffer has someone else to schedule */
585,7 → 588,7
//iq_extract(p, &b->tasks);
 
//iq_insertfirst(p, &b->tasks);
iq_insertfirst(p, &b->tasks);
b->current = NIL;