zephyr/kernel/microkernel
Dmitriy Korovkin 4fc7d0242c kernel: Make idle task sleep
Device drivers may use task_sleep() routine during the initialization.
As device driver initialization is carried by idle task, it can not
be sheduled out as any other task. Idle task goes into a wait loop
instead.

In order to invoke task_sleep() device drivers must enable
CONFIG_NANO_TIMEOUTS option.

Change-Id: Ib73a2ad1f3c0bda44c24f2417e102bfaa3a13a15
Signed-off-by: Dmitriy Korovkin <dmitriy.korovkin@windriver.com>
2016-04-08 15:08:33 +00:00
..
include debug: fixes issue on debug tracing for pool struct 2016-03-14 22:17:10 +00:00
Kconfig kconfig: untangle ordering and dependencies 2016-03-26 20:36:32 -04:00
Makefile
k_command_packet.c
k_event.c events: Simplify task_event_recv() API family 2016-02-05 20:25:05 -05:00
k_fifo.c fifo: Simplify task_fifo_get() API family 2016-02-05 20:25:06 -05:00
k_idle.c power_mgmt: Make names consistent with new RFC 2016-03-26 14:35:11 -04:00
k_init.c build: Add C++ support 2016-02-05 20:25:23 -05:00
k_irq.c microkernel: remove task_irq_free() API 2016-02-05 20:25:21 -05:00
k_mailbox.c mem_pool: Simplify task_mem_pool_alloc() API family 2016-02-05 20:25:05 -05:00
k_memory_map.c mem_map: Simplify task_mem_map_alloc() API family 2016-02-05 20:25:05 -05:00
k_memory_pool.c memory_pool: Refactor code into a helper function 2016-03-10 23:19:59 +00:00
k_move_data.c
k_mutex.c mutex: Simplify task_mutex_lock() API family 2016-02-05 20:25:05 -05:00
k_nop.c Fixed file description and applied doxygen style 2016-02-05 20:24:58 -05:00
k_offload.c
k_pipe.c pipes: Simplify task_pipe_get() API family 2016-02-05 20:25:05 -05:00
k_pipe_buffer.c pipe, cosmetic: Put constant in comparisons on the right 2016-02-05 20:25:05 -05:00
k_pipe_get.c pipe, cosmetic: Put constant in comparisons on the right 2016-02-05 20:25:05 -05:00
k_pipe_put.c pipe, cosmetic: Put constant in comparisons on the right 2016-02-05 20:25:05 -05:00
k_pipe_util.c pipe, cosmetic: Put constant in comparisons on the right 2016-02-05 20:25:05 -05:00
k_pipe_xfer.c pipe, cosmetic: Put constant in comparisons on the right 2016-02-05 20:25:05 -05:00
k_semaphore.c semgroup: Simplify task_sem_group_take() API family 2016-02-05 20:25:05 -05:00
k_server.c nano_stack: Simplify nano_xxx_stack_pop() API family 2016-02-05 20:25:14 -05:00
k_task.c debug: add debug tracing support for task initialization 2016-03-11 22:13:30 +00:00
k_task_monitor.c logger: include task monitor in kernel event logger 2016-02-09 13:53:41 -05:00
k_ticker.c microkernel: Add support for *_sleep() during initialization 2016-03-26 10:17:15 +00:00
k_timer.c kernel: Make idle task sleep 2016-04-08 15:08:33 +00:00