From 114b8204a27201a8730a791c874a0a04bb2ecbc2 Mon Sep 17 00:00:00 2001 From: Yonattan Louise Date: Fri, 8 May 2015 17:12:53 -0500 Subject: [PATCH] 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 --- arch/x86/timer/hpet.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/x86/timer/hpet.c b/arch/x86/timer/hpet.c index ea915290a7c..6f30f52996a 100644 --- a/arch/x86/timer/hpet.c +++ b/arch/x86/timer/hpet.c @@ -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 */