Rename WldT_start to _k_workload_start_time
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: I1b470b85c8fca2c8381cb49c29cbd1f0a4708b54 Signed-off-by: Yonattan Louise <yonattan.a.louise.mendoza@intel.com>
This commit is contained in:
parent
76220c1de4
commit
54bd7b59d3
3 changed files with 5 additions and 5 deletions
|
@ -57,7 +57,7 @@ volatile unsigned int _k_workload_n1 = 0x0;
|
|||
volatile unsigned int _k_workload_i = 0x0;
|
||||
volatile unsigned int _k_workload_i0 = 0x0;
|
||||
volatile unsigned int _k_workload_delta = 0x0;
|
||||
volatile unsigned int WldT_start = 0x0;
|
||||
volatile unsigned int _k_workload_start_time = 0x0;
|
||||
volatile unsigned int WldT_end = 0x0;
|
||||
|
||||
#ifdef WL_SCALE
|
||||
|
|
|
@ -49,7 +49,7 @@ extern volatile unsigned int _k_workload_n1;
|
|||
extern volatile unsigned int _k_workload_i;
|
||||
extern volatile unsigned int _k_workload_i0;
|
||||
extern volatile unsigned int _k_workload_delta;
|
||||
extern volatile unsigned int WldT_start;
|
||||
extern volatile unsigned int _k_workload_start_time;
|
||||
extern volatile unsigned int WldT_end;
|
||||
|
||||
extern void enlist_timer(K_TIMER *T);
|
||||
|
|
|
@ -145,15 +145,15 @@ FUNC_NORETURN void K_swapper(int parameter1, /* not used */
|
|||
extern volatile unsigned int _k_workload_i;
|
||||
extern volatile unsigned int _k_workload_i0;
|
||||
extern volatile unsigned int _k_workload_delta;
|
||||
extern volatile unsigned int WldT_start;
|
||||
extern volatile unsigned int _k_workload_start_time;
|
||||
extern volatile unsigned int WldT_end;
|
||||
|
||||
if (pNextTask->Ident == 0x00000000) {
|
||||
WldT_start = timer_read();
|
||||
_k_workload_start_time = timer_read();
|
||||
}
|
||||
if (_k_current_task->Ident == 0x00000000) {
|
||||
WldT_end = timer_read();
|
||||
_k_workload_i += (_k_workload_i0 * (WldT_end - WldT_start)) /
|
||||
_k_workload_i += (_k_workload_i0 * (WldT_end - _k_workload_start_time)) /
|
||||
_k_workload_delta;
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue