Removed datagram.cycles_queued, needed for "starved" datagrams (deprecated).
authorFlorian Pose <fp@igh-essen.com>
Mon, 08 Jan 2007 08:23:18 +0000
changeset 511 73fb3c35e53d
parent 510 0d0c6fe0e3b2
child 512 24292123d174
Removed datagram.cycles_queued, needed for "starved" datagrams (deprecated).
master/datagram.c
master/datagram.h
master/master.c
--- a/master/datagram.c	Tue Jan 02 13:27:03 2007 +0000
+++ b/master/datagram.c	Mon Jan 08 08:23:18 2007 +0000
@@ -78,7 +78,6 @@
     datagram->index = 0x00;
     datagram->working_counter = 0x00;
     datagram->state = EC_DATAGRAM_INIT;
-    datagram->cycles_queued = 0;
     datagram->cycles_sent = 0;
     datagram->jiffies_sent = 0;
     datagram->cycles_received = 0;
--- a/master/datagram.h	Tue Jan 02 13:27:03 2007 +0000
+++ b/master/datagram.h	Mon Jan 08 08:23:18 2007 +0000
@@ -72,12 +72,12 @@
 
 typedef enum
 {
-    EC_DATAGRAM_INIT, /**< new datagram */
-    EC_DATAGRAM_QUEUED, /**< datagram queued by master */
-    EC_DATAGRAM_SENT, /**< datagram has been sent and still in the queue */
-    EC_DATAGRAM_RECEIVED, /**< datagram has been received and dequeued */
-    EC_DATAGRAM_TIMED_OUT, /**< datagram timed out and was dequeued */
-    EC_DATAGRAM_ERROR /**< error while sending/receiving, datagram dequeued */
+    EC_DATAGRAM_INIT,      /**< new datagram */
+    EC_DATAGRAM_QUEUED,    /**< datagram queued for sending */
+    EC_DATAGRAM_SENT,      /**< datagram has been sent (still in the queue) */
+    EC_DATAGRAM_RECEIVED,  /**< datagram has been received (dequeued) */
+    EC_DATAGRAM_TIMED_OUT, /**< datagram timed out (dequeued) */
+    EC_DATAGRAM_ERROR      /**< error while sending/receiving (dequeued) */
 }
 ec_datagram_state_t;
 
@@ -119,11 +119,10 @@
     uint8_t index; /**< datagram index (set by master) */
     uint16_t working_counter; /**< working counter */
     ec_datagram_state_t state; /**< datagram state */
-    cycles_t cycles_queued; /**< time, the datagram was queued */
     cycles_t cycles_sent; /**< time, the datagram was sent */
-    unsigned long jiffies_sent; /**< jiffies when datagram was sent */
-    cycles_t cycles_received; /**< time, the datagram was received */
-    unsigned long jiffies_received; /**< jiffies when datagram was received */
+    unsigned long jiffies_sent; /**< jiffies, when the datagram was sent */
+    cycles_t cycles_received; /**< time, when the datagram was received */
+    unsigned long jiffies_received; /**< jiffies, when the datagram was rec. */
 }
 ec_datagram_t;
 
--- a/master/master.c	Tue Jan 02 13:27:03 2007 +0000
+++ b/master/master.c	Mon Jan 08 08:23:18 2007 +0000
@@ -487,7 +487,6 @@
 
     list_add_tail(&datagram->queue, &master->datagram_queue);
     datagram->state = EC_DATAGRAM_QUEUED;
-    datagram->cycles_queued = get_cycles();
 }
 
 /*****************************************************************************/