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 <yonattan.a.louise.mendoza@intel.com>
diff --git a/drivers/timer/i8253.c b/drivers/timer/i8253.c
index 77fa825..5834570 100644
--- a/drivers/timer/i8253.c
+++ b/drivers/timer/i8253.c
@@ -149,7 +149,7 @@
#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 @@
* 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
/*