128,6 → 128,8 |
#ifdef GRUBSTAR_DEBUG |
kern_printf("%d",p); |
#endif |
|
kern_gettime(&b->replenish); |
TIMESPEC_ASSIGN(&b->dline, &b->replenish); |
ADDUSEC2TIMESPEC(b->D, &b->dline); |
ADDUSEC2TIMESPEC(b->T, &b->replenish); |
310,9 → 312,12 |
/* we kill the current activation */ |
level_table[ lev->scheduling_level ]-> |
private_extract(lev->scheduling_level, p); |
|
/* we modify the deadline ... */ |
kern_gettime(&b->dline); |
kern_gettime(&b->replenish); |
TIMESPEC_ASSIGN(&b->dline, &b->replenish); |
ADDUSEC2TIMESPEC(b->D, &b->dline); |
ADDUSEC2TIMESPEC(b->T, &b->replenish); |
|
/* and the capacity */ |
b->avail = b->Q; |
710,6 → 715,9 |
lev->b[budget].Q = Q; |
lev->b[budget].T = T; |
lev->b[budget].D = D; |
|
cprintf("[%d:Q=%d:T=%d:D=%d]",budget,(int)Q,(int)T,(int)D); |
|
mul32div32to32(MAX_BANDWIDTH,Q,T,lev->b[budget].Ub); |
|
lev->U += lev->b[budget].Ub; |