summaryrefslogtreecommitdiff
path: root/cpukit/score/src/kern_tc.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/src/kern_tc.c')
-rw-r--r--cpukit/score/src/kern_tc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/cpukit/score/src/kern_tc.c b/cpukit/score/src/kern_tc.c
index 95ae01b5b4..9a4896c5f6 100644
--- a/cpukit/score/src/kern_tc.c
+++ b/cpukit/score/src/kern_tc.c
@@ -1519,6 +1519,7 @@ unlock:
#endif /* __rtems__ */
}
+#ifdef RTEMS_PPS_SYNC
/* Report the frequency of the current timecounter. */
uint64_t
tc_getfrequency(void)
@@ -1526,6 +1527,7 @@ tc_getfrequency(void)
return (timehands->th_counter->tc_frequency);
}
+#endif
#ifndef __rtems__
static bool
@@ -1904,6 +1906,7 @@ SYSCTL_PROC(_kern_timecounter, OID_AUTO, choice,
"Timecounter hardware detected");
#endif /* __rtems__ */
+#ifdef RTEMS_PPS_SYNC
/*
* RFC 2783 PPS-API implementation.
*/
@@ -2292,6 +2295,7 @@ pps_event(struct pps_state *pps, int event)
(*pps->wakeup)(pps);
#endif /* __rtems__ */
}
+#endif /* RTEMS_PPS_SYNC */
/*
* Timecounters need to be updated every so often to prevent the hardware