summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems/score/percpu.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-12-21 14:36:52 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-02-02 15:01:20 +0100
commit9480815a222be61214b176836ef2b4ae4155ce84 (patch)
tree63c96f9a0fb79ead01e6b73d12baaa5ac8cb8378 /cpukit/include/rtems/score/percpu.h
parentscore: Rename _Watchdog_Realtime_from_*() (diff)
downloadrtems-9480815a222be61214b176836ef2b4ae4155ce84.tar.bz2
score: Introduce new monotonic clock
Rename PER_CPU_WATCHDOG_MONOTONIC to PER_CPU_WATCHDOG_TICKS. Add new PER_CPU_WATCHDOG_MONOTONIC which is based on the system uptime (measured by timecounter). Close #3264.
Diffstat (limited to 'cpukit/include/rtems/score/percpu.h')
-rw-r--r--cpukit/include/rtems/score/percpu.h18
1 files changed, 13 insertions, 5 deletions
diff --git a/cpukit/include/rtems/score/percpu.h b/cpukit/include/rtems/score/percpu.h
index 00528b5ce3..7d0a6c06bf 100644
--- a/cpukit/include/rtems/score/percpu.h
+++ b/cpukit/include/rtems/score/percpu.h
@@ -248,14 +248,13 @@ typedef struct {
*/
typedef enum {
/**
- * @brief Index for monotonic clock per-CPU watchdog header.
+ * @brief Index for tick clock per-CPU watchdog header.
*
- * The reference time point for the monotonic clock is the system start. The
+ * The reference time point for the tick clock is the system start. The
* clock resolution is one system clock tick. It is used for the system
- * clock tick based time services and the POSIX services using
- * CLOCK_MONOTONIC.
+ * clock tick based time services.
*/
- PER_CPU_WATCHDOG_MONOTONIC,
+ PER_CPU_WATCHDOG_TICKS,
/**
* @brief Index for realtime clock per-CPU watchdog header.
@@ -267,6 +266,15 @@ typedef enum {
PER_CPU_WATCHDOG_REALTIME,
/**
+ * @brief Index for monotonic clock per-CPU watchdog header.
+ *
+ * The reference time point for the monotonic clock is the system start. The
+ * clock resolution is one nanosecond. It is used for the POSIX services
+ * using CLOCK_MONOTONIC.
+ */
+ PER_CPU_WATCHDOG_MONOTONIC,
+
+ /**
* @brief Count of per-CPU watchdog headers.
*/
PER_CPU_WATCHDOG_COUNT