mirror of
https://github.com/apache/nuttx.git
synced 2026-09-01 06:33:00 +00:00
sched/clock: independent the CLOCK_BOOTTIME
The previous commit will cause build break if the definition of clock id is used in the switch case. Change-Id: Iecd078818d28879883dd582b236372ba43171b13 Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
parent
8411ef1873
commit
a9cdcf2f7a
4 changed files with 4 additions and 2 deletions
|
|
@ -93,7 +93,7 @@
|
|||
/* Monotonic system-wide clock that includes time spent in suspension. */
|
||||
|
||||
#ifdef CONFIG_CLOCK_MONOTONIC
|
||||
# define CLOCK_BOOTTIME CLOCK_MONOTONIC
|
||||
# define CLOCK_BOOTTIME 2
|
||||
#endif
|
||||
|
||||
/* This is a flag that may be passed to the timer_settime() and
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue