From 5ee57bda59b944969a90d0336333f643be9938c1 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 7 Aug 2014 19:11:22 -0600 Subject: [PATCH] Some final tickless OS bugfixes. No longer EXPERIMENTAL. Update some comments --- include/nuttx/arch.h | 4 ++-- include/nuttx/clock.h | 2 +- sched/Kconfig | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/nuttx/arch.h b/include/nuttx/arch.h index 7e121cc2fcb..6d7cfbc62a9 100644 --- a/include/nuttx/arch.h +++ b/include/nuttx/arch.h @@ -970,7 +970,7 @@ int up_prioritize_irq(int irq, int priority); * called early in the initialization sequence by up_intialize(). * On return, the current up-time should be available from * up_timer_gettime() and the interval timer is ready for use (but not - * actively timing. + * actively timing). * * Provided by platform-specific code and called from the architecture- * specific logic. @@ -1004,7 +1004,7 @@ void up_timer_initialize(void); * when clockid is CLOCK_MONOTONIC. * * This function provides the basis for reporting the current time and - * also is used to eliminate error build-up from small erros in interval + * also is used to eliminate error build-up from small errors in interval * time calculations. * * Provided by platform-specific code and called from the RTOS base code. diff --git a/include/nuttx/clock.h b/include/nuttx/clock.h index fcd8c5c58b5..b0f4c150564 100644 --- a/include/nuttx/clock.h +++ b/include/nuttx/clock.h @@ -135,7 +135,7 @@ #define TICK2USEC(tick) ((tick)*USEC_PER_TICK) /* Exact */ #if (MSEC_PER_TICK * USEC_PER_MSEC) == USEC_PER_TICK -#define TICK2USEC(tick) ((tick)*MSEC_PER_TICK) /* Exact */ +# define TICK2MSEC(tick) ((tick)*MSEC_PER_TICK) /* Exact */ #else # define TICK2MSEC(tick) (((tick)*USEC_PER_TICK)/USEC_PER_MSEC) /* Rounds */ #endif diff --git a/sched/Kconfig b/sched/Kconfig index 4f7a88bd377..c13a47a5519 100644 --- a/sched/Kconfig +++ b/sched/Kconfig @@ -55,14 +55,14 @@ config ARCH_HAVE_TICKLESS config SCHED_TICKLESS bool "Support tick-less OS" default n - depends on ARCH_HAVE_TICKLESS && EXPERIMENTAL + depends on ARCH_HAVE_TICKLESS ---help--- Be default, system time is driven by a periodic timer interrupt. An alternative configurations is a tick-less configuration in which there is no periodic timer interrupt. Instead and interval timer is used to schedule the next OS time event. This option selects that tick-less OS option. If the tick-less OS is selected, then there are - additional plaform specific interfaces that must be provided as + additional platform specific interfaces that must be provided as defined include/nuttx/arch.h config USEC_PER_TICK