Rename K_Thead to _k_timer_list_head
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: I8ad0774ad26836e193ed94165491e0bb1e6e9a0c Signed-off-by: Yonattan Louise <yonattan.a.louise.mendoza@intel.com>
This commit is contained in:
parent
07dd3b2188
commit
fc6d85e56b
7 changed files with 16 additions and 16 deletions
|
@ -46,7 +46,7 @@ extern "C" {
|
|||
#endif
|
||||
|
||||
extern int K_ticker(int event);
|
||||
extern K_TIMER *K_Thead;
|
||||
extern K_TIMER *_k_timer_list_head;
|
||||
extern K_TIMER *K_Ttail;
|
||||
extern struct nano_lifo K_TimerFree;
|
||||
extern K_TIMER K_TimerBlocks[]; /* array of microkernel timer objects */
|
||||
|
|
|
@ -225,8 +225,8 @@ void workload_time_slice_set(int32_t t)
|
|||
|
||||
static inline int32_t _GetNextTimerExpiry(void)
|
||||
{
|
||||
if (K_Thead)
|
||||
return K_Thead->Ti;
|
||||
if (_k_timer_list_head)
|
||||
return _k_timer_list_head->Ti;
|
||||
|
||||
return TICKS_UNLIMITED;
|
||||
}
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
#include "microkernel/k_types.h"
|
||||
#include "microkernel/k_struct.h"
|
||||
|
||||
extern K_TIMER *K_Thead;
|
||||
extern K_TIMER *_k_timer_list_head;
|
||||
extern K_TIMER *K_Ttail;
|
||||
extern int64_t K_LowTime;
|
||||
extern unsigned int WldSlice;
|
||||
|
|
|
@ -64,7 +64,7 @@ extern struct k_proc *_k_current_task;
|
|||
extern uint32_t _k_task_priority_bitmap[];
|
||||
|
||||
#ifndef LITE
|
||||
extern K_TIMER *K_Thead;
|
||||
extern K_TIMER *_k_timer_list_head;
|
||||
extern K_TIMER *K_Ttail;
|
||||
#endif
|
||||
extern int64_t K_LowTime;
|
||||
|
|
|
@ -95,7 +95,7 @@ int32_t task_node_tick_get_32(void)
|
|||
|
||||
void enlist_timer(K_TIMER *T)
|
||||
{
|
||||
K_TIMER *P = K_Thead;
|
||||
K_TIMER *P = _k_timer_list_head;
|
||||
K_TIMER *Q = NULL;
|
||||
|
||||
while (P && (T->Ti > P->Ti)) {
|
||||
|
@ -111,7 +111,7 @@ void enlist_timer(K_TIMER *T)
|
|||
if (Q)
|
||||
Q->Forw = T;
|
||||
else
|
||||
K_Thead = T;
|
||||
_k_timer_list_head = T;
|
||||
T->Forw = P;
|
||||
T->Back = Q;
|
||||
}
|
||||
|
@ -136,7 +136,7 @@ void delist_timer(K_TIMER *T)
|
|||
if (Q)
|
||||
Q->Forw = P;
|
||||
else
|
||||
K_Thead = P;
|
||||
_k_timer_list_head = P;
|
||||
T->Ti = -1;
|
||||
}
|
||||
|
||||
|
|
|
@ -94,19 +94,19 @@ static inline void _HandleExpiredTimers(int ticks)
|
|||
#else
|
||||
K_TIMER *T;
|
||||
|
||||
while (K_Thead != NULL) {
|
||||
K_Thead->Ti -= ticks;
|
||||
while (_k_timer_list_head != NULL) {
|
||||
_k_timer_list_head->Ti -= ticks;
|
||||
|
||||
if (K_Thead->Ti > 0) {
|
||||
if (_k_timer_list_head->Ti > 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
T = K_Thead;
|
||||
T = _k_timer_list_head;
|
||||
if (T == K_Ttail) {
|
||||
K_Thead = K_Ttail = NULL;
|
||||
_k_timer_list_head = K_Ttail = NULL;
|
||||
} else {
|
||||
K_Thead = T->Forw;
|
||||
K_Thead->Back = NULL;
|
||||
_k_timer_list_head = T->Forw;
|
||||
_k_timer_list_head->Back = NULL;
|
||||
}
|
||||
if (T->Tr) {
|
||||
T->Ti = T->Tr;
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
#include <sections.h>
|
||||
|
||||
#ifndef LITE
|
||||
K_TIMER *K_Thead = NULL;
|
||||
K_TIMER *_k_timer_list_head = NULL;
|
||||
K_TIMER *K_Ttail = NULL;
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue