Go to file
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
arch Remove VIRT_ADDR_xxx macros 2016-02-05 20:13:39 -05:00
config
drivers Fix checkpatch issue - WARNING:LINE_SPACING 2016-02-05 20:13:39 -05:00
host Fix checkpatch issue - WARNING:LINE_SPACING 2016-02-05 20:13:39 -05:00
include Remove PHYS_ADDR_xxx macros 2016-02-05 20:13:39 -05:00
kernel Clarify set_state_bit: rename variables, add comments. 2016-02-05 20:13:40 -05:00
lib/libc/minimal Fix definition of 'offsetof' 2016-02-05 20:13:39 -05:00
make build: Add QEMU extra flag to be defined in apps 2016-02-05 20:13:39 -05:00
misc Fix checkpatch issue - WARNING:LINE_SPACING 2016-02-05 20:13:39 -05:00
samples Rename KSCALL_BENCH to MICROKERNEL_CALL_BENCH 2016-02-05 20:13:40 -05:00
scripts
shared/include/nanokernel/x86 Fix checkpatch issue - ERROR:POINTER_LOCATION 2016-02-05 20:13:39 -05:00
.gitattributes
.gitignore
.mailmap
vxmicro-env.bash vxmicro-env.bash: more robust setting of VXMICRO_BASE 2016-02-05 19:45:35 -05:00