From 9acb652e29faef36dbf88d9c60df29db90b5e472 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Wed, 20 Mar 2019 19:31:43 -0600 Subject: [PATCH] Rename sched_timer_expiration to nxsched_timer_expiration. That is the appropriate name for an internal sched/ function (still many named incorrectly). --- Documentation/NuttxPortingGuide.html | 22 +++++++++++----------- arch/arm/src/lpc43xx/lpc43_tickless_rit.c | 2 +- arch/arm/src/lpc54xx/lpc54_tickless.c | 2 +- arch/arm/src/sam34/sam4cm_tickless.c | 10 +++++----- arch/arm/src/sama5/sam_tickless.c | 10 +++++----- arch/arm/src/samv7/sam_tickless.c | 10 +++++----- arch/arm/src/stm32/stm32_tickless.c | 10 +++++----- arch/arm/src/stm32l4/stm32l4_tickless.c | 10 +++++----- arch/sim/src/up_tickless.c | 12 ++++++------ drivers/timers/arch_timer.c | 8 ++++---- include/nuttx/arch.h | 12 ++++++------ sched/sched/sched_timerexpiration.c | 6 +++--- 12 files changed, 57 insertions(+), 57 deletions(-) diff --git a/Documentation/NuttxPortingGuide.html b/Documentation/NuttxPortingGuide.html index 4ab143d0da..967689e97e 100644 --- a/Documentation/NuttxPortingGuide.html +++ b/Documentation/NuttxPortingGuide.html @@ -158,7 +158,7 @@ 4.7.1 nx_start()
4.7.2 OS List Management APIs
4.7.3 nxsched_process_timer()
- 4.7.4 sched_timer_expiration()
+ 4.7.4 nxsched_timer_expiration()
4.7.5 sched_alarm_expiration()
4.7.6 irq_dispatch() @@ -2653,7 +2653,7 @@ config ARCH_SIM sched_alarm_expiration(). Called by the platform-specific logic when the alarm expires.
  • - sched_timer_expiration(). Called by the platform-specific logic when the interval time expires. + nxsched_timer_expiration(). Called by the platform-specific logic when the interval time expires.
  • @@ -2711,7 +2711,7 @@ int up_timer_gettime(FAR struct timespec *ts); int up_alarm_cancel(FAR struct timespec *ts);

    Description:

    - Cancel the alarm and return the time of cancellation of the alarm. These two steps need to be as nearly atomic as possible. sched_timer_expiration() will not be called unless the alarm is restarted with up_alarm_start(). If, as a race condition, the alarm has already expired when this function is called, then time returned is the current time. + Cancel the alarm and return the time of cancellation of the alarm. These two steps need to be as nearly atomic as possible. nxsched_timer_expiration() will not be called unless the alarm is restarted with up_alarm_start(). If, as a race condition, the alarm has already expired when this function is called, then time returned is the current time.

    Input Parameters:

    @@ -2734,12 +2734,12 @@ int up_alarm_cancel(FAR struct timespec *ts); int up_alarm_start(FAR const struct timespec *ts);

    Description:

    - Start the alarm. sched_timer_expiration() will be called when the alarm occurs (unless up_alarm_cancel is called to stop it). + Start the alarm. nxsched_timer_expiration() will be called when the alarm occurs (unless up_alarm_cancel is called to stop it).

    Input Parameters:

    Returned Value:

    Description:

    - Cancel the interval timer and return the time remaining on the timer. These two steps need to be as nearly atomic as possible. sched_timer_expiration() will not be called unless the timer is restarted with up_timer_start(). If, as a race condition, the timer has already expired when this function is called, then that pending interrupt must be cleared so that sched_timer_expiration() is not called spuriously and the remaining time of zero should be returned. + Cancel the interval timer and return the time remaining on the timer. These two steps need to be as nearly atomic as possible. nxsched_timer_expiration() will not be called unless the timer is restarted with up_timer_start(). If, as a race condition, the timer has already expired when this function is called, then that pending interrupt must be cleared so that nxsched_timer_expiration() is not called spuriously and the remaining time of zero should be returned.

    Input Parameters:

    @@ -2780,12 +2780,12 @@ int up_timer_cancel(FAR struct timespec *ts); int up_timer_start(FAR const struct timespec *ts);

    Description:

    - Start the interval timer. sched_timer_expiration() will be called at the completion of the timeout (unless up_timer_cancel() is called to stop the timing). + Start the interval timer. nxsched_timer_expiration() will be called at the completion of the timeout (unless up_timer_cancel() is called to stop the timing).

    Input Parameters:

    Returned Value: