diff options
author | Alexander Krutwig <alexander.krutwig@embedded-brains.de> | 2015-05-12 12:12:18 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-05-19 15:14:34 +0200 |
commit | cc6938455edfa4dff79ce98320292e3a9c2e434b (patch) | |
tree | 15d15825419f8c0ccb1dbb17a2dea1779a5bd3c4 /cpukit | |
parent | timecounter: Use uint32_t instead of u_int (diff) | |
download | rtems-cc6938455edfa4dff79ce98320292e3a9c2e434b.tar.bz2 |
timecounter: Honor FFCLOCK define
Update #2271.
Diffstat (limited to '')
-rw-r--r-- | cpukit/score/src/kern_tc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cpukit/score/src/kern_tc.c b/cpukit/score/src/kern_tc.c index 8bcb9b843b..246c98bb90 100644 --- a/cpukit/score/src/kern_tc.c +++ b/cpukit/score/src/kern_tc.c @@ -994,11 +994,13 @@ dtrace_getnanotime(struct timespec *tsp) } while (gen == 0 || gen != th->th_generation); } +#ifdef FFCLOCK /* * System clock currently providing time to the system. Modifiable via sysctl * when the FFCLOCK option is defined. */ int sysclock_active = SYSCLOCK_FBCK; +#endif /* Internal NTP status and error estimates. */ extern int time_status; @@ -1046,7 +1048,9 @@ sysclock_getsnapshot(struct sysclock_snap *clock_snap, int fast) } while (gen == 0 || gen != th->th_generation); clock_snap->delta = delta; +#ifdef FFCLOCK clock_snap->sysclock_active = sysclock_active; +#endif /* Record feedback clock status and error. */ clock_snap->fb_info.status = time_status; |