nuttx/arch/or1k/src/common
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
..
up_allocateheap.c
up_arch.h Refine the preprocessor conditional guard style (#190) 2020-01-31 19:07:39 +01:00
up_assert.c Fix wait loop and void cast (#24) 2020-01-02 10:54:43 -06:00
up_blocktask.c Fix wait loop and void cast (#24) 2020-01-02 10:54:43 -06:00
up_checkstack.c
up_copyfullstate.c
up_cpuinfo.c
up_createstack.c
up_doirq.c
up_etherstub.c
up_exit.c Fix wait loop and void cast (#24) 2020-01-02 10:54:43 -06:00
up_fullcontextrestore.S
up_idle.c Rename sched_process_timer to nxsched_process_timer. That is the appropriate name for an internal sched/ function (still many named incorrectly). 2019-03-20 19:27:40 -06:00
up_initialize.c Call xxx_timer_initialize from clock subsystem 2020-02-08 07:40:06 -06:00
up_initialstate.c Fix typos. 2019-08-04 14:50:28 -06:00
up_internal.h Call xxx_timer_initialize from clock subsystem 2020-02-08 07:40:06 -06:00
up_interruptcontext.c
up_lowputs.c
up_mdelay.c
up_modifyreg8.c
up_modifyreg16.c
up_modifyreg32.c
up_pthread_start.c
up_puts.c
up_releasepending.c Fix wait loop and void cast (#24) 2020-01-02 10:54:43 -06:00
up_releasestack.c pthreads: Add support static pthread stack. Add standard pthread_attr_setstack() and pthread_attr_getstack(). In all cases where the stack is released, add check to see which allocator must be used to free the stack: The user or the kernel allocator. 2018-08-23 09:49:20 -06:00
up_reprioritizertr.c Fix wait loop and void cast (#24) 2020-01-02 10:54:43 -06:00
up_saveusercontext.S
up_schedulesigaction.c Squashed commit of the following: 2019-04-29 14:52:05 -06:00
up_stackframe.c
up_task_start.c Remove trailing spaces at the end of lines. 2018-08-13 07:39:38 -06:00
up_timer.c Call xxx_timer_initialize from clock subsystem 2020-02-08 07:40:06 -06:00
up_uart.c
up_udelay.c
up_unblocktask.c Fix wait loop and void cast (#24) 2020-01-02 10:54:43 -06:00