Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 825 → Rev 824

/shark/trunk/ports/first/modules/grubstar.c
252,13 → 252,11
SUBTIMESPEC(&schedule_time, &lev->cap_lasttime, &ty);
tx = TIMESPEC2USEC(&ty);
 
if (tx>=lev->b[lev->tb[p]].last_reclaiming) {
b->avail -= tx;
b->avail += lev->b[lev->tb[p]].last_reclaiming;
}
b->avail -= tx;
b->avail += lev->b[lev->tb[p]].last_reclaiming;
 
#ifdef GRUBSTAR_DEBUG
kern_printf("(GS:Cap p%d av=%d tx=%d lr=%d)", p, b->avail,(int)tx, (int)lev->b[lev->tb[p]].last_reclaiming);
kern_printf("(GS:Cap p%d av=%d tx=%d)", p, b->avail,(int)tx);
#endif
 
if (b->avail <= 0) {
828,11 → 826,11
int spare;
 
/* force a hard reservation event */
avail_budget=lev->b[lev->tb[exec]].avail;
lev->b[lev->tb[exec]].flags = GRUBSTAR_NOACTIVE;
 
avail_budget=lev->b[lev->tb[exec_shadow]].avail;
lev->b[lev->tb[exec_shadow]].avail=0;
//level_table[proc_table[exec_shadow].task_level]->public_epilogue(proc_table[exec_shadow].task_level, exec_shadow);
/* save the unused capacity */
spare=avail_budget+lev->b[lev->tb[exec]].avail;
spare=avail_budget+lev->b[lev->tb[exec_shadow]].avail;
if (spare<=0) spare=0;
}