Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 213 → Rev 212

/shark/trunk/kernel/modules/hardcbs.c
181,13 → 181,11
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);
}
/* 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);
507,8 → 505,7
lev->U -= (MAX_BANDWIDTH/lev->period[p]) * proc_table[p].wcet;
 
/* we delete the reactivation timer */
if (!(lev->flag[p] & HCBS_APERIODIC) ||
(lev->flag[p] & HCBS_APERIODIC && lev->flag[p] & HCBS_OVERLOAD)) {
if (!(lev->flag[p] & HCBS_APERIODIC)) {
kern_event_delete(lev->reactivation_timer[p]);
lev->reactivation_timer[p] = -1;
}