Rename intLatencyBenchRdy to int_latency_bench_ready

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: I29d8c0a127b252eb3d2ca62f36cd19a09fa1a1d8
Signed-off-by: Yonattan Louise <yonattan.a.louise.mendoza@intel.com>
This commit is contained in:
Yonattan Louise 2015-04-27 10:28:19 -05:00 committed by Anas Nashif
commit ad74268b58

View file

@ -67,7 +67,7 @@ static uint32_t stop_delay = 0;
static uint32_t intLockUnlockNest = 0;
/* indicate if the interrupt latency benchamrk is ready to be used */
static uint32_t intLatencyBenchRdy = 0;
static uint32_t int_latency_bench_ready = 0;
/* globals */
@ -88,7 +88,7 @@ uint32_t _hw_irq_to_c_handler_latency = ULONG_MAX;
void _int_latency_start(void)
{
/* when interrupts are not already locked, take time stamp */
if (!intLockedTimestamp && intLatencyBenchRdy) {
if (!intLockedTimestamp && int_latency_bench_ready) {
intLockedTimestamp = timer_read();
intLockUnlockNest = 0;
}
@ -161,7 +161,7 @@ void int_latency_init(void)
uint32_t timeToReadTime;
uint32_t cacheWarming = NB_CACHE_WARMING_DRY_RUN;
intLatencyBenchRdy = 1;
int_latency_bench_ready = 1;
/*
* measuring delay introduced by the interrupt latency benchmark few
@ -213,7 +213,7 @@ void int_latency_show(void)
{
uint32_t intHandlerLatency = 0;
if (!intLatencyBenchRdy) {
if (!int_latency_bench_ready) {
printk("error: int_latency_init() has not been invoked\n");
return;
}