Rename programmedTicks to programmed_ticks

Updating local 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" -o -name "*.arch" \) \
            ! -path "./host/src/genIdt/*" \
            ! -path "*/outdir/*" | xargs sed -i 's/\b'${1}'\b/'${2}'/g';

Change-Id: Ide6e66dc808bd2b271e246eacfa697ef37342006
Signed-off-by: Yonattan Louise <yonattan.a.louise.mendoza@intel.com>
This commit is contained in:
Yonattan Louise 2015-05-08 17:12:53 -05:00 committed by Anas Nashif
commit 114b8204a2

View file

@ -223,7 +223,7 @@ static uint32_t __noinit counter_load_value; /* main counter units
per system tick */
static uint64_t counter_last_value =
0; /* counter value for most recent tick */
static int32_t programmedTicks =
static int32_t programmed_ticks =
1; /* # ticks timer is programmed for */
static int staleIntCheck =
0; /* is stale interrupt possible? */
@ -316,7 +316,7 @@ void _timer_int_handler(void *unused)
counter_last_value = *_HPET_TIMER0_COMPARATOR;
*_HPET_TIMER0_CONFIG_CAPS |= HPET_Tn_VAL_SET_CNF;
*_HPET_TIMER0_COMPARATOR = counter_last_value + counter_load_value;
programmedTicks = 1;
programmed_ticks = 1;
/*
* Increment the tick because _timer_idle_exit does not account
@ -395,7 +395,7 @@ void _timer_idle_enter(int32_t ticks /* system ticks */
(ticks >= 0) ? counter_last_value + ticks * counter_load_value
: ~(uint64_t)0;
staleIntCheck = 1;
programmedTicks = ticks;
programmed_ticks = ticks;
}
/*******************************************************************************
@ -431,7 +431,7 @@ void _timer_idle_exit(void)
* interrupt handler runs (which is unlikely, but could happen)
*/
_sys_idle_elapsed_ticks = programmedTicks - 1;
_sys_idle_elapsed_ticks = programmed_ticks - 1;
/*
* Announce elapsed ticks to the microkernel. Note we are
@ -502,7 +502,7 @@ void _timer_idle_exit(void)
* boundary.
*/
programmedTicks = 1;
programmed_ticks = 1;
}
#endif /* TIMER_SUPPORTS_TICKLESS */