Rename K_Task to _k_current_task

Updating global variable's name to follow a consistent naming convention.

Change accomplished with the following script:

   #!/bin/bash
   echo "Searching for ${1} to replace with ${2}"
   find ./ \( -name "*.[chs]" -o -name "sysgen.py" -o -name "*.kconf" \) \
            ! -path "./host/src/genIdt/*" \
            ! -path "*/outdir/*" | xargs sed -i 's/\b'${1}'\b/'${2}'/g';

Change-Id: Ic81b4ad7edf476da61ae62df627866e0446714d7
Signed-off-by: Yonattan Louise <yonattan.a.louise.mendoza@intel.com>
This commit is contained in:
Yonattan Louise 2015-04-27 10:28:27 -05:00 committed by Anas Nashif
commit 9bbb6e1e7b
22 changed files with 72 additions and 72 deletions

View file

@ -233,7 +233,7 @@ void abort_task(struct k_proc *X)
void task_abort_handler_set(void (*func)(void) /* abort handler */
)
{
K_Task->fabort = func;
_k_current_task->fabort = func;
}
/*******************************************************************************
@ -420,14 +420,14 @@ void task_priority_set(ktask_t task, /* task whose priority is to be set */
void K_yield(struct k_args *A)
{
struct k_tqhd *H = _k_task_priority_list + K_Task->Prio;
struct k_proc *X = K_Task->Forw;
struct k_tqhd *H = _k_task_priority_list + _k_current_task->Prio;
struct k_proc *X = _k_current_task->Forw;
ARG_UNUSED(A);
if (X && H->Head == K_Task) {
K_Task->Forw = NULL;
H->Tail->Forw = K_Task;
H->Tail = K_Task;
if (X && H->Head == _k_current_task) {
_k_current_task->Forw = NULL;
H->Tail->Forw = _k_current_task;
H->Tail = _k_current_task;
H->Head = X;
}
}