Rename nanoTicks to _nano_ticks

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

View file

@ -150,7 +150,7 @@ void _timer_int_handler(void *unused)
accumulatedCount += sys_clock_hw_cycles_per_tick;
nanoTicks++;
_nano_ticks++;
if (nanoTimerList) {
nanoTimerList->ticks--;

View file

@ -378,7 +378,7 @@ void _TIMER_INT_HANDLER(void *unused)
*/
nano_isr_stack_push(&K_Args, TICK_EVENT);
#else
nanoTicks++;
_nano_ticks++;
if (nanoTimerList) {
nanoTimerList->ticks--;

View file

@ -341,7 +341,7 @@ void _timer_int_handler(void *unused)
#endif /* !TIMER_SUPPORTS_TICKLESS */
#else
nanoTicks++; /* increment nanokernel ticks var */
_nano_ticks++; /* increment nanokernel ticks var */
if (nanoTimerList) {
nanoTimerList->ticks--;

View file

@ -347,7 +347,7 @@ void _timer_int_handler(void *unused /* parameter is not used */
#if defined(CONFIG_NANOKERNEL)
nanoTicks++; /* increment nanokernel ticks var */
_nano_ticks++; /* increment nanokernel ticks var */
if (nanoTimerList != NULL) {
nanoTimerList->ticks--;

View file

@ -328,7 +328,7 @@ void _timer_int_handler(void *unusedArg /* not used */
}
#if defined(CONFIG_NANOKERNEL)
nanoTicks++; /* increment nanokernel ticks var */
_nano_ticks++; /* increment nanokernel ticks var */
if (nanoTimerList) {
nanoTimerList->ticks--;

View file

@ -78,7 +78,7 @@ extern int sys_clock_hw_cycles_per_tick;
#define SYS_CLOCK_HW_CYCLES_TO_NS(X) (uint32_t)(SYS_CLOCK_HW_CYCLES_TO_NS64 (X))
#ifdef CONFIG_NANOKERNEL
extern uint32_t nanoTicks;
extern uint32_t _nano_ticks;
extern struct nano_timer *nanoTimerList;
#endif /* CONFIG_NANOKERNEL */

View file

@ -43,7 +43,7 @@ int sys_clock_us_per_tick = 1000000 / sys_clock_ticks_per_sec;
int sys_clock_hw_cycles_per_tick =
sys_clock_hw_cycles_per_sec / sys_clock_ticks_per_sec;
uint32_t nanoTicks = 0;
uint32_t _nano_ticks = 0;
struct nano_timer *nanoTimerList = NULL;
/*******************************************************************************
@ -74,7 +74,7 @@ void (*__ctor_nano_time_init)(void) __attribute__((section(".ctors.250"))) =
uint32_t nano_node_tick_get_32(void)
{
return nanoTicks;
return _nano_ticks;
}
/*******************************************************************************
@ -121,7 +121,7 @@ uint32_t nano_node_tick_delta(uint64_t *reftime)
uint32_t delta;
uint32_t saved;
saved = nanoTicks;
saved = _nano_ticks;
delta = saved - (uint32_t)(*reftime);
*reftime = (uint64_t) saved;