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:
Yonattan Louise 2015-04-27 10:28:39 -05:00 committed by Anas Nashif
commit a43d34d618

View file

@ -61,7 +61,7 @@ volatile unsigned int _k_workload_start_time = 0x0;
volatile unsigned int _k_workload_end_time = 0x0;
#ifdef WL_SCALE
extern uint32_t K_wl_scale;
extern uint32_t _k_workload_scale;
#endif
#define MSEC_PER_SEC 1000
@ -123,7 +123,7 @@ void wlMonitorCalibrate(void)
_k_workload_delta = _k_workload_t1 - _k_workload_t0;
_k_workload_i0 = _k_workload_i;
#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
_k_workload_ref_time = (_k_workload_t1 - _k_workload_t0) >> (4 + 6);
#endif
@ -143,7 +143,7 @@ void K_workload(struct k_args *P)
k = (_k_workload_i - _k_workload_n0) * _k_workload_ref_time;
#ifdef WL_SCALE
t = (timer_read() - _k_workload_t0) >> (K_wl_scale);
t = (timer_read() - _k_workload_t0) >> (_k_workload_scale);
#else
t = (timer_read() - _k_workload_t0) >> (4 + 6);
#endif