Commit 3e2ad33b authored by Alessandro Rubini's avatar Alessandro Rubini

bugfix: wr: the raw_ahead field is used by wrpc-sw

the field is used in wrpc-sw, so move it out of "#if 0".
Bug introduced by e441b48b, 134 commits ago.
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent fd2b09a0
...@@ -54,9 +54,9 @@ static int wrpc_net_recv(struct pp_instance *ppi, void *pkt, int len, ...@@ -54,9 +54,9 @@ static int wrpc_net_recv(struct pp_instance *ppi, void *pkt, int len,
t->correct = wr_ts.correct; t->correct = wr_ts.correct;
#if 0 /* I disabled the fields, for space: they were only used here */ #if 0 /* I disabled the fields, for space: they were only used here */
t->raw_nsec = wr_ts.raw_nsec; t->raw_nsec = wr_ts.raw_nsec;
t->raw_ahead = wr_ts.raw_ahead;
t->raw_phase = wr_ts.raw_phase; t->raw_phase = wr_ts.raw_phase;
#endif #endif
t->raw_ahead = wr_ts.raw_ahead;
} }
return got; return got;
} }
......
...@@ -66,14 +66,14 @@ typedef struct TimeInternal { ...@@ -66,14 +66,14 @@ typedef struct TimeInternal {
int correct; /* 0 or 1 */ int correct; /* 0 or 1 */
#if 0 #if 0
/* /*
* The following three fields may be used for diagnostics, but * The following two fields may be used for diagnostics, but
* they cost space. So remove them but keep the code around just * they cost space. So remove them but keep the code around just
* in case it is useful again (they are only set, never read) * in case it is useful again (they are only set, never read)
*/ */
int32_t raw_phase; int32_t raw_phase;
int32_t raw_nsec; int32_t raw_nsec;
int32_t raw_ahead;
#endif #endif
int32_t raw_ahead; /* raw_ahead is used during calibration */
/* White Rabbit extension end */ /* White Rabbit extension end */
} TimeInternal; } TimeInternal;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment