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> |
||
|---|---|---|
| .. | ||
| common | ||
| microkernel | ||
| nanokernel | ||
| defs.objs | ||