From 9480815a222be61214b176836ef2b4ae4155ce84 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 21 Dec 2017 14:36:52 +0100 Subject: 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. --- cpukit/include/rtems/score/percpu.h | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'cpukit/include/rtems/score/percpu.h') 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. @@ -266,6 +265,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. */ -- cgit v1.2.3