summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/kern_tc.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2022-06-21 12:26:50 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2022-06-23 09:47:48 +0200
commit94df3a7a6d7c778766ed30a41b55f700475f7e25 (patch)
treed758860bae8135da8c4e3ac1786c12cd6d092d85 /cpukit/score/src/kern_tc.c
parentscore: Use right clock for threadq timeouts (diff)
downloadrtems-94df3a7a6d7c778766ed30a41b55f700475f7e25.tar.bz2
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.
Diffstat (limited to '')
-rw-r--r--cpukit/score/src/kern_tc.c12
1 files changed, 12 insertions, 0 deletions
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)
{