mirror of
https://github.com/apache/nuttx.git
synced 2026-06-08 10:32:47 +08:00
sched/clock: Remove CLOCK_MONOTONIC option from Kconfig
here is the reason: 1.clock_systime_timespec(core function) always exist regardless the setting 2.CLOCK_MONOTONIC is a foundamental clock type required by many places Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
@@ -158,12 +158,8 @@ int timer_create(clockid_t clockid, FAR struct sigevent *evp,
|
||||
|
||||
/* Sanity checks. */
|
||||
|
||||
if (timerid == NULL || (clockid != CLOCK_REALTIME
|
||||
#ifdef CONFIG_CLOCK_MONOTONIC
|
||||
&& clockid != CLOCK_MONOTONIC
|
||||
&& clockid != CLOCK_BOOTTIME
|
||||
#endif /* CONFIG_CLOCK_MONOTONIC */
|
||||
))
|
||||
if (timerid == NULL || (clockid != CLOCK_REALTIME &&
|
||||
clockid != CLOCK_MONOTONIC && clockid != CLOCK_BOOTTIME))
|
||||
{
|
||||
set_errno(EINVAL);
|
||||
return ERROR;
|
||||
|
||||
Reference in New Issue
Block a user