[PATCH 42/45] timecounter: Honor FFCLOCK define

Sebastian Huber sebastian.huber at embedded-brains.de
Fri May 15 11:41:42 UTC 2015


From: Alexander Krutwig <alexander.krutwig at embedded-brains.de>

Update #2271.
---
 cpukit/score/src/kern_tc.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/cpukit/score/src/kern_tc.c b/cpukit/score/src/kern_tc.c
index 3e33495..94b7385 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;
-- 
1.8.4.5




More information about the devel mailing list