zephyr/kernel/microkernel
Sarah Sharp 030d59ce4b Clarify set_state_bit: rename variables, add comments.
Rename local variables to provide more clarity and improve readability:
 - X -> task_ptr
 - f_old -> old_state_bits
 - f_new -> new_state_bits
 - H -> task_queue
 - Y -> cur_task

Add comments to clarify what this function actually does without needing
to open two additional files (include/microkernel/k_struct.h and
kernel/microkernel/core/global.c).

This function is called when a task needs to be marked as not runnable.
A task can be not runnable for a variety of reasons, which are tracked
in a bitmask defined in kernel/microkernel/include/minik.h.

Tasks that are runnable are stored in a global array, K_PrioList, that
contains a list for each task priority level.  Tasks that have
transitioned to not being runnable will be removed from their priority
list by this function.

Change-Id: I07a1180e75e30cdef472c5f77638fc5971ddbaeb
Signed-off-by: Sarah Sharp <sarah.a.sharp@intel.com>
2016-02-05 20:13:40 -05:00
..
channel Remove references to deprecated W/WT naming convention 2016-02-05 20:13:40 -05:00
core Remove comment referencing NODEx.c 2016-02-05 20:13:40 -05:00
include First commit 2015-04-10 16:44:37 -07:00
movedata First commit 2015-04-10 16:44:37 -07:00
timer Fix checkpatch issue - WARNING:LINE_SPACING 2016-02-05 20:13:39 -05:00
defs.objs First commit 2015-04-10 16:44:37 -07:00
idle.c First commit 2015-04-10 16:44:37 -07:00
k_event.c Remove references to deprecated W/WT naming convention 2016-02-05 20:13:40 -05:00
k_irq.c First commit 2015-04-10 16:44:37 -07:00
k_mbox.c First commit 2015-04-10 16:44:37 -07:00
k_memmap.c Fix checkpatch issue - WARNING:LINE_SPACING 2016-02-05 20:13:39 -05:00
k_mempool.c First commit 2015-04-10 16:44:37 -07:00
k_mutex.c First commit 2015-04-10 16:44:37 -07:00
k_nop.c First commit 2015-04-10 16:44:37 -07:00
k_offload.c First commit 2015-04-10 16:44:37 -07:00
k_queue.c First commit 2015-04-10 16:44:37 -07:00
k_sema.c Fix checkpatch issue - WARNING:LINE_SPACING 2016-02-05 20:13:39 -05:00
k_task.c Clarify set_state_bit: rename variables, add comments. 2016-02-05 20:13:40 -05:00
k_timer.c First commit 2015-04-10 16:44:37 -07:00
power.c Renaming nanoCpuSetIdle to nano_cpu_set_idle 2016-02-05 19:45:35 -05:00
task_monitor.c Remove useless comment 2016-02-05 20:13:40 -05:00