From 410f46d7e2c542dd208ca282e4c92215d65bcd77 Mon Sep 17 00:00:00 2001 From: Yonattan Louise Date: Fri, 8 May 2015 17:12:51 -0500 Subject: [PATCH] Rename firstIntMainCountValue to main_count_first_irq_value 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: I43b2a20b0f250e60b7b295710a7eac4cf4cc3d03 Signed-off-by: Yonattan Louise --- arch/x86/timer/hpet.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/x86/timer/hpet.c b/arch/x86/timer/hpet.c index e036c074286..ef46f6bd2ad 100644 --- a/arch/x86/timer/hpet.c +++ b/arch/x86/timer/hpet.c @@ -205,7 +205,7 @@ SYS_INT_REGISTER(_hpetIntStub, HPET_TIMER0_IRQ, HPET_TIMER0_INT_PRI); #endif /* CONFIG_DYNAMIC_INT_STUBS */ #ifdef CONFIG_INT_LATENCY_BENCHMARK -static uint32_t firstIntMainCountValue = 0; +static uint32_t main_count_first_irq_value = 0; static uint32_t expectedMainCountValue = 0; #endif @@ -286,7 +286,7 @@ void _timer_int_handler(void *unused) _hw_irq_to_c_handler_latency = delta; } /* compute the next expected main counter value */ - expectedMainCountValue += firstIntMainCountValue; + expectedMainCountValue += main_count_first_irq_value; #endif #ifdef CONFIG_MICROKERNEL @@ -581,8 +581,8 @@ void timer_driver(int priority /* priority parameter is ignored by this driver *_HPET_TIMER0_COMPARATOR = counterLoadValue; #ifdef CONFIG_INT_LATENCY_BENCHMARK - firstIntMainCountValue = counterLoadValue; - expectedMainCountValue = firstIntMainCountValue; + main_count_first_irq_value = counterLoadValue; + expectedMainCountValue = main_count_first_irq_value; #endif #ifndef TIMER_SUPPORTS_TICKLESS