From 3701c19d6a6c01eb43c46e8dcd0aa5a44f79dc2f Mon Sep 17 00:00:00 2001 From: Yonattan Louise Date: Fri, 8 May 2015 17:12:48 -0500 Subject: [PATCH] Rename maxLoadValue to max_load_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: I6737b01f427d83b4bf1bc486ef0706fac0db0a31 Signed-off-by: Yonattan Louise --- arch/arm/timer/systick.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/timer/systick.c b/arch/arm/timer/systick.c index e8da0ab27fd..10008d7e1ae 100644 --- a/arch/arm/timer/systick.c +++ b/arch/arm/timer/systick.c @@ -126,7 +126,7 @@ static uint32_t __noinit default_load_value; /* default count */ 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 maxLoadValue; +static uint32_t __noinit max_load_value; static uint32_t __noinit timerIdleSkew; static unsigned char timerMode = TIMER_MODE_PERIODIC; static unsigned char idleMode = IDLE_NOT_TICKLESS; @@ -431,7 +431,7 @@ static void sysTickTicklessIdleInit(void) max_system_ticks = 0x00ffffff / default_load_value; /* determine the associated load value */ - maxLoadValue = max_system_ticks * default_load_value; + max_load_value = max_system_ticks * default_load_value; /* * Calculate the skew from switching the timer in and out of idle mode. @@ -461,7 +461,7 @@ static void sysTickTicklessIdleInit(void) /* emulate calculation of the new counter reload value */ if ((dummy == 1) || (dummy == default_load_value)) { dummy = max_system_ticks - 1; - dummy += maxLoadValue - default_load_value; + dummy += max_load_value - default_load_value; } else { dummy = dummy - 1; dummy += dummy * default_load_value; @@ -517,7 +517,7 @@ void _timer_idle_enter(int32_t ticks /* system ticks */ * earlier * is added. */ - idle_original_count += maxLoadValue - default_load_value; + idle_original_count += max_load_value - default_load_value; idle_original_ticks = max_system_ticks - 1; } else { /* leave one tick of buffer to have to time react when coming