summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/score/percpu.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-10-14 15:14:53 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-10-17 08:15:40 +0200
commitbf2a53d272107b8b224b1a48694da24d2d042442 (patch)
tree397d8f4917dcf8ca017aff215bdcf1d5de786f84 /cpukit/score/include/rtems/score/percpu.h
parentbsp/tms570: remove duplicate of TMS570_SCI_FLR_TX_EMPTY in console driver. (diff)
downloadrtems-bf2a53d272107b8b224b1a48694da24d2d042442.tar.bz2
score: Rename watchdog variants
Rename PER_CPU_WATCHDOG_RELATIVE in PER_CPU_WATCHDOG_MONOTONIC to highlight the corresponding POSIX CLOCK_MONOTONIC. Rename PER_CPU_WATCHDOG_ABSOLUTE in PER_CPU_WATCHDOG_REALTIME to highlight the corresponding POSIX CLOCK_REALTIME. Update #3117. Update #3182.
Diffstat (limited to 'cpukit/score/include/rtems/score/percpu.h')
-rw-r--r--cpukit/score/include/rtems/score/percpu.h22
1 files changed, 13 insertions, 9 deletions
diff --git a/cpukit/score/include/rtems/score/percpu.h b/cpukit/score/include/rtems/score/percpu.h
index 97cb2bea15..00528b5ce3 100644
--- a/cpukit/score/include/rtems/score/percpu.h
+++ b/cpukit/score/include/rtems/score/percpu.h
@@ -248,20 +248,23 @@ typedef struct {
*/
typedef enum {
/**
- * @brief Index for relative per-CPU watchdog header.
+ * @brief Index for monotonic clock per-CPU watchdog header.
*
- * The reference time point for this header is current ticks value
- * during insert. Time is measured in clock ticks.
+ * The reference time point for the monotonic 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.
*/
- PER_CPU_WATCHDOG_RELATIVE,
+ PER_CPU_WATCHDOG_MONOTONIC,
/**
- * @brief Index for absolute per-CPU watchdog header.
+ * @brief Index for realtime clock per-CPU watchdog header.
*
- * The reference time point for this header is the POSIX Epoch. Time is
- * measured in nanoseconds since POSIX Epoch.
+ * The reference time point for the realtime clock is the POSIX Epoch. The
+ * clock resolution is one nanosecond. It is used for the time of day
+ * services and the POSIX services using CLOCK_REALTIME.
*/
- PER_CPU_WATCHDOG_ABSOLUTE,
+ PER_CPU_WATCHDOG_REALTIME,
/**
* @brief Count of per-CPU watchdog headers.
@@ -395,7 +398,8 @@ typedef struct Per_CPU_Control {
ISR_LOCK_MEMBER( Lock )
/**
- * @brief Watchdog ticks on this processor used for relative watchdogs.
+ * @brief Watchdog ticks on this processor used for monotonic clock
+ * watchdogs.
*/
uint64_t ticks;