zephyr/kernel/microkernel
Benjamin Walsh 1b5b6e44f7 kernel: add _IS_IDLE_TASK()
Add a way of finding if a microkernel task is the idle task instead of
of duplicating:

  task_priority_get() == (CONFIG_NUM_TASK_PRIORITIES - 1)

which could be subject to change.

Only available for microkernel, since there is no such concept in the
nanokernel.

Change-Id: Ie8930981f1a2ac5ff16f905f4eb4e333c8b59c5d
Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
2016-05-11 20:22:24 +00:00
..
include microkernel: Add TF_NANO wait flag reason 2016-05-04 22:51:32 +00:00
k_command_packet.c kernel: Eliminate the need for command packet sets 2016-02-05 20:24:42 -05:00
k_event.c microkernel: Match alignment with open parenthesis 2016-04-26 11:10:37 +00: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 checkpatch: warning - block_comment_style 2016-02-05 20:24:33 -05:00
k_mutex.c mutex: Simplify task_mutex_lock() API family 2016-02-05 20:25:05 -05:00
k_nano.c microkernel: [un]block tasks on nanokernel objects infrastructure 2016-05-04 22:51:33 +00:00
k_nop.c microkernel: Fibers and ISRs may invoke microkernel no-op 2016-05-04 22:51:35 +00:00
k_offload.c Change BSD-3 licenses to Apache 2 2016-02-05 20:24:29 -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_pipe.c pipes: Simplify task_pipe_get() API family 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 microkernel: use _thread_essential_set() 2016-05-03 17:42:54 +00:00
k_task_monitor.c logger: include task monitor in kernel event logger 2016-02-09 13:53:41 -05:00
k_task.c microkernel: lock interrupts in _k_state_bit_[re]set() 2016-05-04 22:51:35 +00:00
k_ticker.c microkernel: Add support for *_sleep() during initialization 2016-03-26 10:17:15 +00:00
k_timer.c kernel: add _IS_IDLE_TASK() 2016-05-11 20:22:24 +00:00
Kconfig kconfig: untangle ordering and dependencies 2016-03-26 20:36:32 -04:00
Makefile microkernel: [un]block tasks on nanokernel objects infrastructure 2016-05-04 22:51:33 +00:00