Rename _TimerIdleSkew to timer_idle_skew

Updating local variable's name to follow a consistent naming convention.
The prefix underscore is removed due to it's a local variable.

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: I5681dc0c33cc42ee48270eab418c99cc923f96b1
Signed-off-by: Yonattan Louise <yonattan.a.louise.mendoza@intel.com>
This commit is contained in:
Yonattan Louise 2015-05-08 17:12:55 -05:00 committed by Anas Nashif
parent 23f1b6f4ca
commit 04d87ce58f
2 changed files with 7 additions and 7 deletions

View file

@ -137,7 +137,7 @@ static uint32_t idle_original_count = 0;
static uint32_t __noinit max_system_ticks;
static uint32_t idle_original_ticks = 0;
static uint32_t __noinit max_load_value;
static uint32_t __noinit _TimerIdleSkew;
static uint32_t __noinit timer_idle_skew;
static unsigned char _TimerMode = TIMER_MODE_PERIODIC;
#endif /* TIMER_SUPPORTS_TICKLESS */
@ -422,7 +422,7 @@ static void _loApicTimerTicklessIdleSkew(void)
volatile uint32_t dummy; /* used to replicate the 'skew time' */
/* Timer must be running for this to work */
_TimerIdleSkew = _loApicTimerGetRemaining();
timer_idle_skew = _loApicTimerGetRemaining();
_loApicTimerStart(); /* This is normally a stop operation */
dummy = _loApicTimerGetRemaining(); /*_loApicTimerSetCount
@ -432,7 +432,7 @@ static void _loApicTimerTicklessIdleSkew(void)
_TimerMode = TIMER_MODE_PERIODIC;
/* Down counter */
_TimerIdleSkew -= _loApicTimerGetRemaining();
timer_idle_skew -= _loApicTimerGetRemaining();
}
/*******************************************************************************
@ -457,7 +457,7 @@ void _timer_idle_enter(int32_t ticks /* system ticks */
* timer. So we read the count out of it and add it to the requested
* time out
*/
idle_original_count = _loApicTimerGetRemaining() - _TimerIdleSkew;
idle_original_count = _loApicTimerGetRemaining() - timer_idle_skew;
if ((ticks == -1) || (ticks > max_system_ticks)) {
/*

View file

@ -142,7 +142,7 @@ static uint16_t idle_original_count = 0;
static uint16_t idle_original_ticks = 0;
static uint16_t __noinit max_system_ticks;
static uint16_t __noinit max_load_value;
static uint16_t __noinit _TimerIdleSkew;
static uint16_t __noinit timer_idle_skew;
/* Used to determine if the timer ISR should place the timer in periodic mode */
static unsigned char _TimerMode = TIMER_MODE_PERIODIC;
@ -367,7 +367,7 @@ static void _i8253TicklessIdleInit(void)
static void _i8253TicklessIdleSkew(void)
{
/* TBD */
_TimerIdleSkew = 0;
timer_idle_skew = 0;
}
/*******************************************************************************
@ -414,7 +414,7 @@ void _timer_idle_enter(int32_t ticks /* system ticks */
newCount += idle_original_ticks * counterLoadVal;
}
idle_original_count = newCount - _TimerIdleSkew;
idle_original_count = newCount - timer_idle_skew;
/* Stop/start the timer instead of disabling/enabling the interrupt? */
irq_disable(PIT_INT_LVL);