Rename nestingDelay to nesting_delay
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: If0b4e6e045e4564bb4e56ba598b77def556f06bb Signed-off-by: Yonattan Louise <yonattan.a.louise.mendoza@intel.com>
This commit is contained in:
parent
66d3f2be84
commit
4bd1bf4df9
1 changed files with 7 additions and 7 deletions
|
@ -60,7 +60,7 @@ static uint32_t int_locked_latency_max = 0;
|
|||
|
||||
/* overhead added to intLock/intUnlock by this latency benchmark */
|
||||
static uint32_t initial_start_delay = 0;
|
||||
static uint32_t nestingDelay = 0;
|
||||
static uint32_t nesting_delay = 0;
|
||||
static uint32_t stopDelay = 0;
|
||||
|
||||
/* counter tracking intLock/intUnlock calls once interrupt are locked */
|
||||
|
@ -130,7 +130,7 @@ void _int_latency_stop(void)
|
|||
*/
|
||||
delayOverhead =
|
||||
(initial_start_delay +
|
||||
((intLockUnlockNest - 1) * nestingDelay) + stopDelay);
|
||||
((intLockUnlockNest - 1) * nesting_delay) + stopDelay);
|
||||
if (delta >= delayOverhead)
|
||||
delta -= delayOverhead;
|
||||
|
||||
|
@ -169,7 +169,7 @@ void int_latency_init(void)
|
|||
* invoking the latency can changes runtime (i.e. cache hit or miss)
|
||||
* but an estimated overhead is used to adjust Max interrupt latency.
|
||||
* The overhead introduced by benchmark is composed of three values:
|
||||
* initial_start_delay, nestingDelay, stopDelay.
|
||||
* initial_start_delay, nesting_delay, stopDelay.
|
||||
*/
|
||||
while (cacheWarming) {
|
||||
/* measure how much time it takes to read time */
|
||||
|
@ -183,9 +183,9 @@ void int_latency_init(void)
|
|||
initial_start_delay =
|
||||
timer_read() - initial_start_delay - timeToReadTime;
|
||||
|
||||
nestingDelay = timer_read();
|
||||
nesting_delay = timer_read();
|
||||
_int_latency_start();
|
||||
nestingDelay = timer_read() - nestingDelay - timeToReadTime;
|
||||
nesting_delay = timer_read() - nesting_delay - timeToReadTime;
|
||||
|
||||
stopDelay = timer_read();
|
||||
_int_latency_stop();
|
||||
|
@ -245,8 +245,8 @@ void int_latency_show(void)
|
|||
" for int. unlocked : %d tcs = %d nsec\n",
|
||||
initial_start_delay,
|
||||
SYS_CLOCK_HW_CYCLES_TO_NS(initial_start_delay),
|
||||
nestingDelay,
|
||||
SYS_CLOCK_HW_CYCLES_TO_NS(nestingDelay),
|
||||
nesting_delay,
|
||||
SYS_CLOCK_HW_CYCLES_TO_NS(nesting_delay),
|
||||
stopDelay,
|
||||
SYS_CLOCK_HW_CYCLES_TO_NS(stopDelay));
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue