Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 352 → Rev 353

/shark/trunk/kernel/modules/edf.c
20,11 → 20,11
 
/**
------------
CVS : $Id: edf.c,v 1.8 2003-09-29 16:24:36 giacomo Exp $
CVS : $Id: edf.c,v 1.9 2003-12-10 16:55:00 giacomo Exp $
 
File: $File$
Revision: $Revision: 1.8 $
Last update: $Date: 2003-09-29 16:24:36 $
Revision: $Revision: 1.9 $
Last update: $Date: 2003-12-10 16:55:00 $
------------
 
This file contains the scheduling module EDF (Earliest Deadline First)
60,8 → 60,9
#include <kernel/descr.h>
#include <kernel/var.h>
#include <kernel/func.h>
#include <kernel/trace.h>
 
#include <tracer.h>
 
//#define EDF_DEBUG
#define edf_printf kern_printf
 
122,7 → 123,7
 
case EDF_IDLE:
/* tracer stuff */
trc_logevent(TRC_INTACTIVATION,&p);
TRACER_LOGEVENT(FTrace_EVT_task_timer,3,p,proc_table[p].task_level);
/* similar to EDF_task_activate */
temp = iq_query_timespec(p,&lev->ready);
ADDUSEC2TIMESPEC(lev->period[p], temp);
371,7 → 372,7
proc_table[p].avail_time = proc_table[p].wcet;
 
jet_update_endcycle(); /* Update the Jet data... */
trc_logevent(TRC_ENDCYCLE,&p); /* tracer stuff */
TRACER_LOGEVENT(FTrace_EVT_task_end_cycle,3,p,l);
 
break;
 
390,7 → 391,7
if (proc_table[p].status == EDF_IDLE)
proc_table[p].status = EDF_WAIT;
 
trc_logevent(TRC_DISABLE,&p);
TRACER_LOGEVENT(FTrace_EVT_task_disable,3,p,l);
 
break;