Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 987 → Rev 986

/shark/trunk/ports/first/modules/grubstar.c
284,13 → 284,12
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;
445,10 → 444,8
/* 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);
 
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 );
}
 
#ifdef GRUBSTAR_DEBUG
476,7 → 473,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 */
588,7 → 585,7
//iq_extract(p, &b->tasks);
 
iq_insertfirst(p, &b->tasks);
//iq_insertfirst(p, &b->tasks);
b->current = NIL;