20,11 → 20,11 |
|
/** |
------------ |
CVS : $Id: rm.c,v 1.5 2003-05-05 07:31:44 pj Exp $ |
CVS : $Id: rm.c,v 1.6 2003-12-10 16:55:00 giacomo Exp $ |
|
File: $File$ |
Revision: $Revision: 1.5 $ |
Last update: $Date: 2003-05-05 07:31:44 $ |
Revision: $Revision: 1.6 $ |
Last update: $Date: 2003-12-10 16:55:00 $ |
------------ |
|
This file contains the scheduling module RM (Rate Monotonic) |
67,8 → 67,9 |
#include <kernel/descr.h> |
#include <kernel/var.h> |
#include <kernel/func.h> |
#include <kernel/trace.h> |
|
#include <tracer.h> |
|
/*+ Status used in the level +*/ |
#define RM_READY MODULE_STATUS_BASE /*+ - Ready status +*/ |
#define RM_WCET_VIOLATED MODULE_STATUS_BASE+2 /*+ when wcet is finished +*/ |
121,7 → 122,7 |
|
case RM_IDLE: |
/* tracer stuff */ |
trc_logevent(TRC_INTACTIVATION,&p); |
TRACER_LOGEVENT(FTrace_EVT_task_timer,3,p,proc_table[p].task_level); |
/* similar to RM_task_activate */ |
temp = iq_query_timespec(p, &lev->ready); |
ADDUSEC2TIMESPEC(lev->period[p], temp); |
335,8 → 336,8 |
proc_table[p].avail_time = proc_table[p].wcet; |
|
jet_update_endcycle(); /* Update the Jet data... */ |
trc_logevent(TRC_ENDCYCLE,&exec_shadow); /* tracer stuff */ |
|
TRACER_LOGEVENT(FTrace_EVT_task_end_cycle,3,p,l); |
|
/* when the deadline timer fire, it recognize the situation and set |
correctly all the stuffs (like reactivation, sleep, etc... ) */ |
|