Removed old unused timetable code

This commit is contained in:
Adam Dunkels 2013-11-19 08:29:23 +01:00
parent 84fd0f9ae1
commit 30c0c5eaf6
4 changed files with 1 additions and 97 deletions

View file

@ -67,8 +67,6 @@
#include "net/rime/rimestats.h"
#include "net/netstack.h"
#include "sys/timetable.h"
#define WITH_SEND_CCA 0
/* Timestamps have not been tested */
@ -1277,11 +1275,6 @@ rf230_set_pan_addr(unsigned pan,
static volatile rtimer_clock_t interrupt_time;
static volatile int interrupt_time_set;
#endif /* RF230_CONF_TIMESTAMPS */
#if RF230_TIMETABLE_PROFILING
#define rf230_timetable_size 16
TIMETABLE(rf230_timetable);
TIMETABLE_AGGREGATE(aggregate_time, 10);
#endif /* RF230_TIMETABLE_PROFILING */
int
rf230_interrupt(void)
{
@ -1297,11 +1290,6 @@ if (RF230_receive_on) {
process_poll(&rf230_process);
#if RF230_TIMETABLE_PROFILING
timetable_clear(&rf230_timetable);
TIMETABLE_TIMESTAMP(rf230_timetable, "interrupt");
#endif /* RF230_TIMETABLE_PROFILING */
rf230_pending = 1;
#if RADIOSTATS //TODO:This will double count buffered packets
@ -1339,9 +1327,6 @@ PROCESS_THREAD(rf230_process, ev, data)
while(1) {
PROCESS_YIELD_UNTIL(ev == PROCESS_EVENT_POLL);
RF230PROCESSFLAG(42);
#if RF230_TIMETABLE_PROFILING
TIMETABLE_TIMESTAMP(rf230_timetable, "poll");
#endif /* RF230_TIMETABLE_PROFILING */
packetbuf_clear();
@ -1369,12 +1354,6 @@ PROCESS_THREAD(rf230_process, ev, data)
packetbuf_set_datalen(len);
RF230PROCESSFLAG(2);
NETSTACK_RDC.input();
#if RF230_TIMETABLE_PROFILING
TIMETABLE_TIMESTAMP(rf230_timetable, "end");
timetable_aggregate_compute_detailed(&aggregate_time,
&rf230_timetable);
timetable_clear(&rf230_timetable);
#endif /* RF230_TIMETABLE_PROFILING */
} else {
#if RADIOSTATS
RF230_receivefail++;