diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-08-15 03:55:41 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-08-15 03:55:41 -0600 |
commit | a6ee65bab25417ed591db423c2bc670a38a1dcba (patch) | |
tree | 6b84b3126c91b872b44294370b31d135df034f26 /nuttx/include/time.h | |
parent | fbcb900cc1c4d5f8f647ed45fc43b00eb4949eec (diff) | |
download | nuttx-a6ee65bab25417ed591db423c2bc670a38a1dcba.tar.gz nuttx-a6ee65bab25417ed591db423c2bc670a38a1dcba.tar.bz2 nuttx-a6ee65bab25417ed591db423c2bc670a38a1dcba.zip |
When reading the system timer, don't read a struct timespec, convert it to a fake tick count, then back to a timespec. Remove CLOCK_ACTIVETIME.. it is non-standard, unused, and gets in the way of changes like this
Diffstat (limited to 'nuttx/include/time.h')
-rw-r--r-- | nuttx/include/time.h | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/nuttx/include/time.h b/nuttx/include/time.h index a10d948b7..e19c360c2 100644 --- a/nuttx/include/time.h +++ b/nuttx/include/time.h @@ -80,19 +80,6 @@ #define CLOCK_REALTIME 0 -/* If an RTC is supported, then the non-standard CLOCK_ACTIVETIME is also - * supported to manage time based on the system timer interrupt separately - * from the RTC. This may be necessary, for example, in certain cases where - * the system timer interrupt has been stopped in low power modes. - * - * CLOCK_ACTIVETIME is only recognized by clock_gettime() and clock_settime(). - */ - -#ifdef CONFIG_RTC -# define CLOCK_ACTIVETIME 1 -#else -# define CLOCK_ACTIVETIME CLOCK_REALTIME -#endif /* Clock that cannot be set and represents monotonic time since some * unspecified starting point. It is not affected by changes in the @@ -100,7 +87,7 @@ */ #ifdef CONFIG_CLOCK_MONOTONIC -# define CLOCK_MONOTONIC 2 +# define CLOCK_MONOTONIC 1 #endif /* This is a flag that may be passed to the timer_settime() function */ |