284,9 → 284,10 |
if (lev->cap_lev != NIL) { |
kern_event_delete(lev->cap_lev); |
lev->cap_lev = NIL; |
} |
|
if (TIMESPEC_A_LT_B(&lev->cap_lasttime,&schedule_time)) { |
SUBTIMESPEC(&schedule_time, &lev->cap_lasttime, &ty); |
|
tx = TIMESPEC2USEC(&ty); |
} |
|
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 ); |
|
|
} |
|
#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; |
|