Rename intLockUnlockNest to int_lock_unlock_nest

Updating global 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" \) \
            ! -path "./host/src/genIdt/*" \
            ! -path "*/outdir/*" | xargs sed -i 's/\b'${1}'\b/'${2}'/g';

Change-Id: Ied3e173313f9c3a65ee5559a19bfa047f1d71863
Signed-off-by: Yonattan Louise <yonattan.a.louise.mendoza@intel.com>
This commit is contained in:
Yonattan Louise 2015-04-27 10:28:21 -05:00 committed by Anas Nashif
commit 3bd9fc04a8

View file

@ -64,7 +64,7 @@ static uint32_t nesting_delay = 0;
static uint32_t stop_delay = 0;
/* counter tracking intLock/intUnlock calls once interrupt are locked */
static uint32_t intLockUnlockNest = 0;
static uint32_t int_lock_unlock_nest = 0;
/* indicate if the interrupt latency benchamrk is ready to be used */
static uint32_t int_latency_bench_ready = 0;
@ -90,9 +90,9 @@ void _int_latency_start(void)
/* when interrupts are not already locked, take time stamp */
if (!int_locked_timestamp && int_latency_bench_ready) {
int_locked_timestamp = timer_read();
intLockUnlockNest = 0;
int_lock_unlock_nest = 0;
}
intLockUnlockNest++;
int_lock_unlock_nest++;
}
/*******************************************************************************
@ -130,7 +130,7 @@ void _int_latency_stop(void)
*/
delayOverhead =
(initial_start_delay +
((intLockUnlockNest - 1) * nesting_delay) + stop_delay);
((int_lock_unlock_nest - 1) * nesting_delay) + stop_delay);
if (delta >= delayOverhead)
delta -= delayOverhead;