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.
This commit is contained in:
Sebastian Huber
2022-06-21 12:26:50 +02:00
parent cd50bea678
commit 94df3a7a6d

View File

@@ -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)
{