[rtems commit] kern_tc.c: Provide a weak hardpps() implementation
Sebastian Huber
sebh at rtems.org
Thu Jun 23 07:42:33 UTC 2022
Module: rtems
Branch: master
Commit: 94df3a7a6d7c778766ed30a41b55f700475f7e25
Changeset: http://git.rtems.org/rtems/commit/?id=94df3a7a6d7c778766ed30a41b55f700475f7e25
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Tue Jun 21 12:26:50 2022 +0200
kern_tc.c: Provide a weak hardpps() implementation
The real implementation of hardpps() is defined in kern_ntptime.c. Use it only
if the NTP support is needed by the application.
Update #2349.
---
cpukit/score/src/kern_tc.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/cpukit/score/src/kern_tc.c b/cpukit/score/src/kern_tc.c
index 78d7fa1e3f..2b7aeaad31 100644
--- a/cpukit/score/src/kern_tc.c
+++ b/cpukit/score/src/kern_tc.c
@@ -2079,6 +2079,18 @@ pps_ioctl(u_long cmd, caddr_t data, struct pps_state *pps)
}
#ifdef __rtems__
+/*
+ * The real implementation of hardpps() is defined in kern_ntptime.c. Use it
+ * only if the NTP support is needed by the application.
+ */
+RTEMS_WEAK void
+hardpps(struct timespec *tsp, long nsec)
+{
+
+ (void)tsp;
+ (void)nsec;
+}
+
static int
default_wait(struct pps_state *pps, struct timespec timeout)
{
More information about the vc
mailing list