Rename _MaxLoadValue to max_load_value
Updating local variable's name to follow a consistent naming convention.
The prefix underscore is removed due to it's a local variable.
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: Id7391e40bb709f03c58f552d6b783cad834bbdcc
Signed-off-by: Yonattan Louise <yonattan.a.louise.mendoza@intel.com>
diff --git a/arch/x86/timer/loApicTimer.c b/arch/x86/timer/loApicTimer.c
index 76e5fee..f249baa 100644
--- a/arch/x86/timer/loApicTimer.c
+++ b/arch/x86/timer/loApicTimer.c
@@ -136,7 +136,7 @@
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;
#endif /* TIMER_SUPPORTS_TICKLESS */
@@ -398,7 +398,7 @@
{
max_system_ticks = 0xffffffff / counterLoadVal;
/* this gives a count that gives the max number of full ticks */
- _MaxLoadValue = max_system_ticks * counterLoadVal;
+ max_load_value = max_system_ticks * counterLoadVal;
}
/*******************************************************************************
@@ -471,7 +471,7 @@
* earlier
* is added.
*/
- idle_original_count += _MaxLoadValue - counterLoadVal;
+ idle_original_count += max_load_value - counterLoadVal;
idle_original_ticks = max_system_ticks - 1;
} else {
/* leave one tick of buffer to have to time react when coming
diff --git a/drivers/timer/i8253.c b/drivers/timer/i8253.c
index dae6349..29911b8 100644
--- a/drivers/timer/i8253.c
+++ b/drivers/timer/i8253.c
@@ -141,7 +141,7 @@
static uint16_t idle_original_count = 0;
static uint16_t idle_original_ticks = 0;
static uint16_t __noinit max_system_ticks;
-static uint16_t __noinit _MaxLoadValue;
+static uint16_t __noinit max_load_value;
static uint16_t __noinit _TimerIdleSkew;
/* Used to determine if the timer ISR should place the timer in periodic mode */
@@ -352,7 +352,7 @@
{
max_system_ticks = 0xffff / counterLoadVal;
/* this gives a count that gives the max number of full ticks */
- _MaxLoadValue = max_system_ticks * counterLoadVal;
+ max_load_value = max_system_ticks * counterLoadVal;
}
/*******************************************************************************
@@ -405,7 +405,7 @@
* earlier
* is added.
*/
- newCount += _MaxLoadValue - counterLoadVal;
+ newCount += max_load_value - counterLoadVal;
idle_original_ticks = max_system_ticks - 1;
} else {
/* leave one tick of buffer to have to time react when coming