kernel: kconfig: Fix broken references to TICKLESS_KERNEL

The CONFIG_ prefixes were missing on these.

Found with a work-in-progress scripts/kconfig/lint.py check.

This symbol is defined in kernel/Kconfig.

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
This commit is contained in:
Ulf Magnusson 2020-01-25 05:16:31 +01:00 committed by Anas Nashif
commit 92529da116
3 changed files with 3 additions and 3 deletions

View file

@ -96,7 +96,7 @@ int z_clock_driver_init(struct device *device)
nrf_timer_task_trigger(TIMER, NRF_TIMER_TASK_CLEAR); nrf_timer_task_trigger(TIMER, NRF_TIMER_TASK_CLEAR);
nrf_timer_task_trigger(TIMER, NRF_TIMER_TASK_START); nrf_timer_task_trigger(TIMER, NRF_TIMER_TASK_START);
if (!IS_ENABLED(TICKLESS_KERNEL)) { if (!IS_ENABLED(CONFIG_TICKLESS_KERNEL)) {
set_comparator(counter() + CYC_PER_TICK); set_comparator(counter() + CYC_PER_TICK);
} }

View file

@ -48,7 +48,7 @@ static u32_t driver_uptime;
u32_t z_clock_elapsed(void) u32_t z_clock_elapsed(void)
{ {
#ifdef TICKLESS_KERNEL #ifdef CONFIG_TICKLESS_KERNEL
return (u32_t)(z_clock_uptime() - driver_uptime); return (u32_t)(z_clock_uptime() - driver_uptime);
#else #else
return 0; return 0;

View file

@ -105,7 +105,7 @@ int z_clock_driver_init(struct device *device)
nrf_rtc_task_trigger(RTC, NRF_RTC_TASK_CLEAR); nrf_rtc_task_trigger(RTC, NRF_RTC_TASK_CLEAR);
nrf_rtc_task_trigger(RTC, NRF_RTC_TASK_START); nrf_rtc_task_trigger(RTC, NRF_RTC_TASK_START);
if (!IS_ENABLED(TICKLESS_KERNEL)) { if (!IS_ENABLED(CONFIG_TICKLESS_KERNEL)) {
set_comparator(counter() + CYC_PER_TICK); set_comparator(counter() + CYC_PER_TICK);
} }