Rename K_Ttail to _k_timer_list_tail

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: I5e774c9b78ace93049a41824cee0305ceb69228d
Signed-off-by: Yonattan Louise <yonattan.a.louise.mendoza@intel.com>
This commit is contained in:
Yonattan Louise 2015-04-27 10:28:28 -05:00 committed by Anas Nashif
commit b4db2ae7fc
6 changed files with 8 additions and 8 deletions

View file

@ -47,7 +47,7 @@ extern "C" {
extern int K_ticker(int event);
extern K_TIMER *_k_timer_list_head;
extern K_TIMER *K_Ttail;
extern K_TIMER *_k_timer_list_tail;
extern struct nano_lifo K_TimerFree;
extern K_TIMER K_TimerBlocks[]; /* array of microkernel timer objects */
extern const knode_t _k_this_node;

View file

@ -37,7 +37,7 @@
#include "microkernel/k_struct.h"
extern K_TIMER *_k_timer_list_head;
extern K_TIMER *K_Ttail;
extern K_TIMER *_k_timer_list_tail;
extern int64_t K_LowTime;
extern unsigned int WldSlice;
extern unsigned int WldTicks;

View file

@ -65,7 +65,7 @@ extern uint32_t _k_task_priority_bitmap[];
#ifndef LITE
extern K_TIMER *_k_timer_list_head;
extern K_TIMER *K_Ttail;
extern K_TIMER *_k_timer_list_tail;
#endif
extern int64_t K_LowTime;

View file

@ -107,7 +107,7 @@ void enlist_timer(K_TIMER *T)
P->Ti -= T->Ti;
P->Back = T;
} else
K_Ttail = T;
_k_timer_list_tail = T;
if (Q)
Q->Forw = T;
else
@ -132,7 +132,7 @@ void delist_timer(K_TIMER *T)
P->Ti += T->Ti;
P->Back = Q;
} else
K_Ttail = Q;
_k_timer_list_tail = Q;
if (Q)
Q->Forw = P;
else

View file

@ -102,8 +102,8 @@ static inline void _HandleExpiredTimers(int ticks)
}
T = _k_timer_list_head;
if (T == K_Ttail) {
_k_timer_list_head = K_Ttail = NULL;
if (T == _k_timer_list_tail) {
_k_timer_list_head = _k_timer_list_tail = NULL;
} else {
_k_timer_list_head = T->Forw;
_k_timer_list_head->Back = NULL;

View file

@ -41,7 +41,7 @@
#ifndef LITE
K_TIMER *_k_timer_list_head = NULL;
K_TIMER *K_Ttail = NULL;
K_TIMER *_k_timer_list_tail = NULL;
#endif
int64_t K_LowTime = 0;