summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/sys
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2015-03-07 18:23:32 +0000
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-10-12 07:04:09 +0200
commitea0b339bbcfee1636918375e55c67e9bc0916021 (patch)
tree2fd5afd4f94cc841d1131d2c43bd18590316aa6f /cpukit/score/include/sys
parentposix: Use right time format in adjtime() (diff)
downloadrtems-ea0b339bbcfee1636918375e55c67e9bc0916021.tar.bz2
timecounter: Merge FreeBSD change r279728
Add mutex support to the pps_ioctl() API in the kernel. Bump kernel version to reflect structure change. PR: 196897 MFC after: 1 week Update #3175.
Diffstat (limited to 'cpukit/score/include/sys')
-rw-r--r--cpukit/score/include/sys/timepps.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/cpukit/score/include/sys/timepps.h b/cpukit/score/include/sys/timepps.h
index 71d74f54ee..85bb6813cf 100644
--- a/cpukit/score/include/sys/timepps.h
+++ b/cpukit/score/include/sys/timepps.h
@@ -133,6 +133,8 @@ struct pps_kcbind_args {
#ifdef _KERNEL
+struct mtx;
+
struct pps_state {
/* Capture information. */
struct timehands *capth;
@@ -140,6 +142,9 @@ struct pps_state {
unsigned capgen;
unsigned capcount;
+ /* pointer to mutex protecting this state, if any */
+ struct mtx *mtx;
+
/* State information. */
pps_params_t ppsparam;
pps_info_t ppsinfo;