181,11 → 181,13 |
the activation incrementing nact... */ |
lev->nact[p]++; |
|
if (!(lev->flag[p] & HCBS_APERIODIC)) { |
/* repost the event at the next period end... */ |
ADDUSEC2TIMESPEC(lev->period[p], &lev->reactivation_time[p]); |
lev->reactivation_timer[p] = kern_event_post(&lev->reactivation_time[p], |
HCBS_timer_reactivate, |
(void *)p); |
} |
|
/* tracer stuff */ |
trc_logevent(TRC_INTACTIVATION,&p); |
505,7 → 507,8 |
lev->U -= (MAX_BANDWIDTH/lev->period[p]) * proc_table[p].wcet; |
|
/* we delete the reactivation timer */ |
if (!(lev->flag[p] & HCBS_APERIODIC)) { |
if (!(lev->flag[p] & HCBS_APERIODIC) || |
(lev->flag[p] & HCBS_APERIODIC && lev->flag[p] & HCBS_OVERLOAD)) { |
kern_event_delete(lev->reactivation_timer[p]); |
lev->reactivation_timer[p] = -1; |
} |