Rename microkernel struct field 'Head' to 'head'.

Rename field 'Head' of the struct:
- 'k_tqhd' in the file kernel/microkernel/include/micro_private_types.h
- 'k_args' in the file kernel/microkernel/include/micro_private_types.h
- 'List' in the file include/misc/lists.h

Change-Id: Id7c2bdfc8d928ca835894acd9125c0ec96502ff0
Signed-off-by: Yonattan Louise <yonattan.a.louise.mendoza@intel.com>
This commit is contained in:
Yonattan Louise 2015-08-24 15:45:34 -05:00 committed by Anas Nashif
commit 9a8e20c697
10 changed files with 33 additions and 33 deletions

View file

@ -155,7 +155,7 @@ void _k_state_bit_set(
#endif
#endif
struct k_tqhd *task_queue = _k_task_priority_list + task_ptr->priority;
struct k_task *cur_task = (struct k_task *)(&task_queue->Head);
struct k_task *cur_task = (struct k_task *)(&task_queue->head);
/*
* Search in the list for this task priority level,
@ -175,7 +175,7 @@ void _k_state_bit_set(
* If there are no more tasks of this priority that are
* runnable, then clear that bit in the global priority bit map.
*/
if (task_queue->Head == NULL) {
if (task_queue->head == NULL) {
_k_task_priority_bitmap[task_ptr->priority >> 5] &= ~(1 << (task_ptr->priority & 0x1F));
}
}
@ -550,11 +550,11 @@ void _k_task_yield(struct k_args *A)
struct k_task *X = _k_current_task->next;
ARG_UNUSED(A);
if (X && H->Head == _k_current_task) {
if (X && H->head == _k_current_task) {
_k_current_task->next = NULL;
H->Tail->next = _k_current_task;
H->Tail = _k_current_task;
H->Head = X;
H->head = X;
}
}