zephyr/kernel/nanokernel
Geoff Thorpe ded3070c1c nanokernel: tighten _is_thread_essential()
Of the 3 related functions;
  _thread_essential_set()
  _thread_essential_clear()
  _is_thread_essential()

The first two are parameter-less and always operate on
"_nanokernel.current". The last one takes a 'thread' parameter but will
operate on _nanokernel.current if the parameter is NULL. All calls to
_is_thread_essential() pass NULL!

This change makes the 3 functions consistent by removing the parameter
to the 3rd function. This should also be marginally more efficient,
though consistency was the motivation. This change corrects the doc
preamble to all 3 functions.

(These functions would probably be better as inlines. Also, the choice
of when to use wrappers seems a bit arbitrary. E.g. there's nothing
for setting/testing the "FIBER" flag.)

Change-Id: Ie3589f8a28b227c6d7a3a31b664d3b3e6e9c6d17
Signed-off-by: Geoff Thorpe <geoff.thorpe@nxp.com>
2016-05-03 17:42:54 +00:00
..
include power_mgmt: APIs for devices to signal busy 2016-04-23 02:14:21 +00:00
atomic_c.c nanokernel: move C atomic operations to centralized code 2016-04-27 21:40:19 +00:00
compiler_stack_protect.c remove redundant checking for CONFIG_STACK_CANARIES 2016-02-11 18:48:45 +00:00
device.c device: Include errno.h 2016-04-26 22:49:49 +00:00
event_logger.c nano_sema: Simplify nano_xxx_sem_take() API family 2016-02-05 20:25:14 -05:00
idle.c kernel: Combine nano_timers and nano_timeouts 2016-03-26 09:20:10 +00:00
int_latency_bench.c x86: streamline irq_lock()/irq_unlock() 2016-02-05 20:25:13 -05:00
Kconfig nanokernel: move C atomic operations to centralized code 2016-04-27 21:40:19 +00:00
kernel_event_logger.c init: use SYS_INIT() where it makes sense 2016-02-05 20:25:25 -05:00
Makefile nanokernel: move C atomic operations to centralized code 2016-04-27 21:40:19 +00:00
nano_context.c nanokernel: tighten _is_thread_essential() 2016-05-03 17:42:54 +00:00
nano_fiber.c nanokernel: Change fiber_start() return type 2016-02-23 10:48:54 -05:00
nano_fifo.c nano_fifo: Fix problem with nano_fifo and timeouts 2016-04-12 01:22:42 +00:00
nano_init.c microkernel: use _thread_essential_set() 2016-05-03 17:42:54 +00:00
nano_lifo.c debug: kernel's object tracing api 2016-03-11 12:00:07 +00:00
nano_sema.c debug: kernel's object tracing api 2016-03-11 12:00:07 +00:00
nano_sleep.c microkernel: Add support for *_sleep() during initialization 2016-03-26 10:17:15 +00:00
nano_stack.c debug: adds object tracing capability to nano stack 2016-03-11 22:12:26 +00:00
nano_sys_clock.c kernel: Combine nano_timers and nano_timeouts 2016-03-26 09:20:10 +00:00
nano_timer.c kernel: Combine nano_timers and nano_timeouts 2016-03-26 09:20:10 +00:00
ring_buffer.c checkpatch: error - spacing 2016-02-05 20:24:31 -05:00
version.c Change BSD-3 licenses to Apache 2 2016-02-05 20:24:29 -05:00