Rename K_wl_scale to _k_workload_scale
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: Ia4fdc22a19ae6d338b78055c20b6581971a715d0 Signed-off-by: Yonattan Louise <yonattan.a.louise.mendoza@intel.com>
This commit is contained in:
parent
79dd1b48bd
commit
a43d34d618
1 changed files with 3 additions and 3 deletions
|
@ -61,7 +61,7 @@ volatile unsigned int _k_workload_start_time = 0x0;
|
||||||
volatile unsigned int _k_workload_end_time = 0x0;
|
volatile unsigned int _k_workload_end_time = 0x0;
|
||||||
|
|
||||||
#ifdef WL_SCALE
|
#ifdef WL_SCALE
|
||||||
extern uint32_t K_wl_scale;
|
extern uint32_t _k_workload_scale;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define MSEC_PER_SEC 1000
|
#define MSEC_PER_SEC 1000
|
||||||
|
@ -123,7 +123,7 @@ void wlMonitorCalibrate(void)
|
||||||
_k_workload_delta = _k_workload_t1 - _k_workload_t0;
|
_k_workload_delta = _k_workload_t1 - _k_workload_t0;
|
||||||
_k_workload_i0 = _k_workload_i;
|
_k_workload_i0 = _k_workload_i;
|
||||||
#ifdef WL_SCALE
|
#ifdef WL_SCALE
|
||||||
_k_workload_ref_time = (_k_workload_t1 - _k_workload_t0) >> (K_wl_scale);
|
_k_workload_ref_time = (_k_workload_t1 - _k_workload_t0) >> (_k_workload_scale);
|
||||||
#else
|
#else
|
||||||
_k_workload_ref_time = (_k_workload_t1 - _k_workload_t0) >> (4 + 6);
|
_k_workload_ref_time = (_k_workload_t1 - _k_workload_t0) >> (4 + 6);
|
||||||
#endif
|
#endif
|
||||||
|
@ -143,7 +143,7 @@ void K_workload(struct k_args *P)
|
||||||
|
|
||||||
k = (_k_workload_i - _k_workload_n0) * _k_workload_ref_time;
|
k = (_k_workload_i - _k_workload_n0) * _k_workload_ref_time;
|
||||||
#ifdef WL_SCALE
|
#ifdef WL_SCALE
|
||||||
t = (timer_read() - _k_workload_t0) >> (K_wl_scale);
|
t = (timer_read() - _k_workload_t0) >> (_k_workload_scale);
|
||||||
#else
|
#else
|
||||||
t = (timer_read() - _k_workload_t0) >> (4 + 6);
|
t = (timer_read() - _k_workload_t0) >> (4 + 6);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue