Rename K_PrioList to _k_task_priority_list
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: Idff77a32adb875789a57d2c9131b87769bf6f174 Signed-off-by: Yonattan Louise <yonattan.a.louise.mendoza@intel.com>
This commit is contained in:
parent
3bd9fc04a8
commit
964a9c9d77
4 changed files with 9 additions and 9 deletions
|
@ -40,7 +40,7 @@
|
|||
|
||||
extern const knode_t K_ThisNode;
|
||||
extern struct k_proc K_TaskList[];
|
||||
extern struct k_tqhd K_PrioList[];
|
||||
extern struct k_tqhd _k_task_priority_list[];
|
||||
|
||||
extern int K_TaskCount;
|
||||
|
||||
|
|
|
@ -73,9 +73,9 @@ void reset_state_bit(struct k_proc *X, /* ptr to task */
|
|||
*/
|
||||
|
||||
#ifndef LITE
|
||||
struct k_tqhd *H = K_PrioList + X->Prio;
|
||||
struct k_tqhd *H = _k_task_priority_list + X->Prio;
|
||||
#else
|
||||
struct k_tqhd *H = K_PrioList;
|
||||
struct k_tqhd *H = _k_task_priority_list;
|
||||
#endif
|
||||
|
||||
X->Forw = NULL;
|
||||
|
@ -144,7 +144,7 @@ void set_state_bit(
|
|||
volatile
|
||||
#endif
|
||||
#endif
|
||||
struct k_tqhd *task_queue = K_PrioList + task_ptr->Prio;
|
||||
struct k_tqhd *task_queue = _k_task_priority_list + task_ptr->Prio;
|
||||
struct k_proc *cur_task = (struct k_proc *)(&task_queue->Head);
|
||||
|
||||
/*
|
||||
|
@ -420,7 +420,7 @@ 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_PrioList + K_Task->Prio;
|
||||
struct k_tqhd *H = _k_task_priority_list + K_Task->Prio;
|
||||
struct k_proc *X = K_Task->Forw;
|
||||
|
||||
ARG_UNUSED(A);
|
||||
|
|
|
@ -129,7 +129,7 @@ FUNC_NORETURN void K_swapper(int parameter1, /* not used */
|
|||
* it's guaranteed that there will always be at least one task
|
||||
* in the ready state (idle task)
|
||||
*/
|
||||
pNextTask = K_PrioList[K_PrioListIdx].Head;
|
||||
pNextTask = _k_task_priority_list[K_PrioListIdx].Head;
|
||||
|
||||
if (K_Task != pNextTask) {
|
||||
/*
|
||||
|
|
|
@ -431,11 +431,11 @@ def kernel_main_c_priorities():
|
|||
# priority queue descriptors (lowest priority queue contains idle task)
|
||||
|
||||
kernel_main_c_out("\n" +
|
||||
"struct k_tqhd K_PrioList[%d] =\n" % (num_prios) +
|
||||
"struct k_tqhd _k_task_priority_list[%d] =\n" % (num_prios) +
|
||||
"{\n")
|
||||
for i in range(1, num_prios):
|
||||
kernel_main_c_out(
|
||||
" {NULL, (struct k_proc *)&K_PrioList[%d]},\n" % (i - 1))
|
||||
" {NULL, (struct k_proc *)&_k_task_priority_list[%d]},\n" % (i - 1))
|
||||
kernel_main_c_out(
|
||||
" {&K_TaskList[%d], &K_TaskList[%d]}\n" %
|
||||
(total_tasks - 1, total_tasks - 1) +
|
||||
|
@ -444,7 +444,7 @@ def kernel_main_c_priorities():
|
|||
# active priority queue (idle task's queue)
|
||||
|
||||
kernel_main_c_out("\n" +
|
||||
"struct k_tqhd * K_Prio = &K_PrioList[%d];\n" % (num_prios - 1))
|
||||
"struct k_tqhd * K_Prio = &_k_task_priority_list[%d];\n" % (num_prios - 1))
|
||||
|
||||
|
||||
def kernel_main_c_events():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue