From 0827ff7f80f753aa29995411e68f2aa83a0344c9 Mon Sep 17 00:00:00 2001 From: Yonattan Louise Date: Fri, 8 May 2015 17:13:00 -0500 Subject: [PATCH] Rename oldAcc to old_accumulated_count 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: Ib426dad55e318bb8176c4e7660711db1484cc245 Signed-off-by: Yonattan Louise --- drivers/timer/i8253.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/timer/i8253.c b/drivers/timer/i8253.c index 77fa825e951..583457067fc 100644 --- a/drivers/timer/i8253.c +++ b/drivers/timer/i8253.c @@ -149,7 +149,7 @@ static unsigned char timer_mode = TIMER_MODE_PERIODIC; #endif /* TIMER_SUPPORTS_TICKLESS */ static uint32_t old_count = 0; /* previous system clock value */ -static uint32_t oldAcc = 0; /* previous accumulated value value */ +static uint32_t old_accumulated_count = 0; /* previous accumulated value value */ /* externs */ @@ -576,13 +576,13 @@ uint32_t timer_read(void) * happened before the timer interrupt (due to possible interrupt * disable) */ - if ((newCount < old_count) && (clock_accumulated_count == oldAcc)) { + if ((newCount < old_count) && (clock_accumulated_count == old_accumulated_count)) { uint32_t tmp = old_count - newCount; newCount += tmp - tmp % _currentLoadVal + _currentLoadVal; } old_count = newCount; - oldAcc = clock_accumulated_count; + old_accumulated_count = clock_accumulated_count; #ifdef CONFIG_INT_LATENCY_BENCHMARK /*