Rename initialStartDelay to initial_start_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: I95b2198b75ea30e3a6911623b304e4559befab77 Signed-off-by: Yonattan Louise <yonattan.a.louise.mendoza@intel.com>
This commit is contained in:
parent
b07ba0e433
commit
bfa745b128
1 changed files with 8 additions and 8 deletions
|
@ -59,7 +59,7 @@ static uint32_t intLockingLatencyMin = ULONG_MAX;
|
||||||
static uint32_t intLockingLatencyMax = 0;
|
static uint32_t intLockingLatencyMax = 0;
|
||||||
|
|
||||||
/* overhead added to intLock/intUnlock by this latency benchmark */
|
/* overhead added to intLock/intUnlock by this latency benchmark */
|
||||||
static uint32_t initialStartDelay = 0;
|
static uint32_t initial_start_delay = 0;
|
||||||
static uint32_t nestingDelay = 0;
|
static uint32_t nestingDelay = 0;
|
||||||
static uint32_t stopDelay = 0;
|
static uint32_t stopDelay = 0;
|
||||||
|
|
||||||
|
@ -129,7 +129,7 @@ void _int_latency_stop(void)
|
||||||
* be smaller than the estimated overhead.
|
* be smaller than the estimated overhead.
|
||||||
*/
|
*/
|
||||||
delayOverhead =
|
delayOverhead =
|
||||||
(initialStartDelay +
|
(initial_start_delay +
|
||||||
((intLockUnlockNest - 1) * nestingDelay) + stopDelay);
|
((intLockUnlockNest - 1) * nestingDelay) + stopDelay);
|
||||||
if (delta >= delayOverhead)
|
if (delta >= delayOverhead)
|
||||||
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)
|
* invoking the latency can changes runtime (i.e. cache hit or miss)
|
||||||
* but an estimated overhead is used to adjust Max interrupt latency.
|
* but an estimated overhead is used to adjust Max interrupt latency.
|
||||||
* The overhead introduced by benchmark is composed of three values:
|
* The overhead introduced by benchmark is composed of three values:
|
||||||
* initialStartDelay, nestingDelay, stopDelay.
|
* initial_start_delay, nestingDelay, stopDelay.
|
||||||
*/
|
*/
|
||||||
while (cacheWarming) {
|
while (cacheWarming) {
|
||||||
/* measure how much time it takes to read time */
|
/* measure how much time it takes to read time */
|
||||||
|
@ -178,10 +178,10 @@ void int_latency_init(void)
|
||||||
|
|
||||||
/* measure time to call intLatencyStart() and intLatencyStop
|
/* measure time to call intLatencyStart() and intLatencyStop
|
||||||
* takes */
|
* takes */
|
||||||
initialStartDelay = timer_read();
|
initial_start_delay = timer_read();
|
||||||
_int_latency_start();
|
_int_latency_start();
|
||||||
initialStartDelay =
|
initial_start_delay =
|
||||||
timer_read() - initialStartDelay - timeToReadTime;
|
timer_read() - initial_start_delay - timeToReadTime;
|
||||||
|
|
||||||
nestingDelay = timer_read();
|
nestingDelay = timer_read();
|
||||||
_int_latency_start();
|
_int_latency_start();
|
||||||
|
@ -243,8 +243,8 @@ void int_latency_show(void)
|
||||||
" for int. lock : %d tcs = %d nsec\n"
|
" for int. lock : %d tcs = %d nsec\n"
|
||||||
" each time int. lock nest: %d tcs = %d nsec\n"
|
" each time int. lock nest: %d tcs = %d nsec\n"
|
||||||
" for int. unlocked : %d tcs = %d nsec\n",
|
" for int. unlocked : %d tcs = %d nsec\n",
|
||||||
initialStartDelay,
|
initial_start_delay,
|
||||||
SYS_CLOCK_HW_CYCLES_TO_NS(initialStartDelay),
|
SYS_CLOCK_HW_CYCLES_TO_NS(initial_start_delay),
|
||||||
nestingDelay,
|
nestingDelay,
|
||||||
SYS_CLOCK_HW_CYCLES_TO_NS(nestingDelay),
|
SYS_CLOCK_HW_CYCLES_TO_NS(nestingDelay),
|
||||||
stopDelay,
|
stopDelay,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue