Rename K_LowTime to _k_sys_clock_tick_count

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: Ie9ee644501bf608c4881969f376b586077f3b7c9
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 48c73dbe5d
4 changed files with 6 additions and 6 deletions

View file

@ -38,7 +38,7 @@
extern K_TIMER *_k_timer_list_head;
extern K_TIMER *_k_timer_list_tail;
extern int64_t K_LowTime;
extern int64_t _k_sys_clock_tick_count;
extern unsigned int WldSlice;
extern unsigned int WldTicks;
extern unsigned int WldRefT;

View file

@ -67,7 +67,7 @@ extern uint32_t _k_task_priority_bitmap[];
extern K_TIMER *_k_timer_list_head;
extern K_TIMER *_k_timer_list_tail;
#endif
extern int64_t K_LowTime;
extern int64_t _k_sys_clock_tick_count;
extern struct nano_stack K_Args;
extern struct nano_lifo LinkIn[6];

View file

@ -83,7 +83,7 @@ int64_t task_node_tick_get(void)
int32_t task_node_tick_get_32(void)
{
return (int32_t)K_LowTime;
return (int32_t)_k_sys_clock_tick_count;
}
/*******************************************************************************

View file

@ -44,7 +44,7 @@ K_TIMER *_k_timer_list_head = NULL;
K_TIMER *_k_timer_list_tail = NULL;
#endif
int64_t K_LowTime = 0;
int64_t _k_sys_clock_tick_count = 0;
/* these two access routines can be removed if atomic operators are
* functional on all platforms */
@ -52,7 +52,7 @@ void _LowTimeInc(int inc)
{
int key = irq_lock_inline();
K_LowTime += inc;
_k_sys_clock_tick_count += inc;
irq_unlock_inline(key);
}
@ -60,7 +60,7 @@ int64_t _LowTimeGet(void)
{
int64_t ticks;
int key = irq_lock_inline();
ticks = K_LowTime;
ticks = _k_sys_clock_tick_count;
irq_unlock_inline(key);
return ticks;