nuttx/sched
Xiang Xiao 6d69439f58 Call xxx_timer_initialize from clock subsystem
Call xxx_timer_initialize from clock subsystem to make timer ready for use as soon as possiblei and revert the workaround:

commit 0863e771a9
Author: Gregory Nutt <gnutt@nuttx.org>
Date:   Fri Apr 26 07:24:57 2019 -0600

    Revert "sched/clock/clock_initialize.c:  clock_inittime() needs to be done with CONFIG_SCHED_TICKLESS and clock_initialize should skip clock_inittime() for external RTC case since the RTC isn't ready yet."

    This reverts commit 2bc709d4b9.

    Commit 2bc709d4b9 was intended to handle the case where up_timer_gettime may not start from zero case.  However, this change has the side-effect of breaking every implementation of tickless mode:  After this change the tickless timer structures are used before they are initialized in clock_inittime().  Initialization happens later when up_initialize is called() when arm_timer_initialize().

    Since the tickless mode timer is very special, one solution might be to

    1. Rename xxx_timer_initialize to up_timer_initialize
    2  Move up_timer_initialize to include/nuttx/arch.h
    3.  Call it from clock subsystem instead up_initialize

    Basically, this change make timer initialization almost same as rtc initialization(up_rtc_initialize).

    For now, however, we just need to revert the change.
2020-02-08 07:40:06 -06:00
..
clock Call xxx_timer_initialize from clock subsystem 2020-02-08 07:40:06 -06:00
environ Remove exra whitespace from files (#189) 2020-01-31 09:24:49 -06:00
errno Standardization of some function headers. 2018-03-13 09:52:27 -06:00
group Rename net_clone/net_dupsd[2] to psock_dup2/net_dup[2] like vfs 2020-01-31 13:45:14 -06:00
init Fix wait loop and void cast (#24) 2020-01-02 10:54:43 -06:00
irq Call up_irqinitialize from irq subsystem 2020-02-08 07:39:22 -06:00
module ELF64 support (#220) 2020-02-07 17:10:23 -06:00
mqueue Remove exra whitespace from files (#189) 2020-01-31 09:24:49 -06:00
paging tools/nxstyle.c: Add automatic detection of line width based on examining 2020-01-12 13:07:54 -03:00
pthread Replace #include <semaphore.h> to #include <nuttx/semaphore.h> 2020-02-01 08:27:30 -06:00
sched sched/sched/sched_getcpu.c: All new files should have Apache 2.0 headers. 2020-02-02 07:36:34 -08:00
semaphore Replace #include <semaphore.h> to #include <nuttx/semaphore.h> 2020-02-01 08:27:30 -06:00
signal Replace #include <semaphore.h> to #include <nuttx/semaphore.h> 2020-02-01 08:27:30 -06:00
task Replace #include <semaphore.h> to #include <nuttx/semaphore.h> 2020-02-01 08:27:30 -06:00
timer tools/nxstyle.c: Add automatic detection of line width based on examining 2020-01-12 13:07:54 -03:00
wdog Fix wait loop and void cast (#24) 2020-01-02 10:54:43 -06:00
wqueue Replace #include <semaphore.h> to #include <nuttx/semaphore.h> 2020-02-01 08:27:30 -06:00
.gitignore
Kconfig Fix typos and some incorrect comments 2020-01-20 09:32:36 -03:00
Makefile