10,6 → 10,7 |
* Massimiliano Giorgi <massy@gandalf.sssup.it> |
* Luca Abeni <luca@gandalf.sssup.it> |
* Anton Cervin |
* Tullio Facchinetti <tullio.facchinetti@unipv.it> |
* |
* ReTiS Lab (Scuola Superiore S.Anna - Pisa - Italy) |
* |
20,11 → 21,11 |
|
/** |
------------ |
CVS : $Id: edf.c,v 1.1 2005-02-25 10:53:41 pj Exp $ |
CVS : $Id: edf.c,v 1.2 2006-03-22 16:06:19 tullio Exp $ |
|
File: $File$ |
Revision: $Revision: 1.1 $ |
Last update: $Date: 2005-02-25 10:53:41 $ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2006-03-22 16:06:19 $ |
------------ |
|
This file contains the scheduling module EDF (Earliest Deadline First) |
223,7 → 224,8 |
/* post deadline timer */ |
if (lev->flags & EDF_ENABLE_DL_CHECK) { |
temp = td->release; |
ADDUSEC2TIMESPEC(td->rdeadline, &temp); |
if (td->rdeadline == td->period) ADDUSEC2TIMESPEC((td->rdeadline - 1), &temp); |
else ADDUSEC2TIMESPEC(td->rdeadline, &temp); |
if (td->dl_timer != -1) { |
kern_event_delete(td->dl_timer); |
td->dl_timer = -1; |
325,11 → 327,8 |
td->flags |= EDF_FLAG_SPORADIC; |
} |
td->period = h->mit; |
if (td->rdeadline == td->period) { |
/* Ensure that D <= T-eps to make dl_timer trigger before eop_timer */ |
td->rdeadline = td->period - 1; |
} |
td->offset = h->offset; |
|
td->offset = h->offset; |
td->dl_timer = -1; |
td->eop_timer = -1; |
td->off_timer = -1; |