Rename WldTDelta to _k_workload_delta

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: Ifed3a15c4f79af72355dcc1beba90973f7bc0959
Signed-off-by: Yonattan Louise <yonattan.a.louise.mendoza@intel.com>
This commit is contained in:
Yonattan Louise 2015-04-27 10:28:33 -05:00 committed by Anas Nashif
parent f6fe9949a3
commit 76220c1de4
3 changed files with 5 additions and 5 deletions

View file

@ -56,7 +56,7 @@ volatile unsigned int _k_workload_n0 = 0x0;
volatile unsigned int _k_workload_n1 = 0x0;
volatile unsigned int _k_workload_i = 0x0;
volatile unsigned int _k_workload_i0 = 0x0;
volatile unsigned int WldTDelta = 0x0;
volatile unsigned int _k_workload_delta = 0x0;
volatile unsigned int WldT_start = 0x0;
volatile unsigned int WldT_end = 0x0;
@ -120,7 +120,7 @@ void wlMonitorCalibrate(void)
_WlLoop();
_k_workload_t1 = timer_read();
WldTDelta = _k_workload_t1 - _k_workload_t0;
_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);

View file

@ -48,7 +48,7 @@ extern volatile unsigned int _k_workload_n0;
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 WldTDelta;
extern volatile unsigned int _k_workload_delta;
extern volatile unsigned int WldT_start;
extern volatile unsigned int WldT_end;

View file

@ -144,7 +144,7 @@ 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 WldTDelta;
extern volatile unsigned int _k_workload_delta;
extern volatile unsigned int WldT_start;
extern volatile unsigned int WldT_end;
@ -154,7 +154,7 @@ FUNC_NORETURN void K_swapper(int parameter1, /* not used */
if (_k_current_task->Ident == 0x00000000) {
WldT_end = timer_read();
_k_workload_i += (_k_workload_i0 * (WldT_end - WldT_start)) /
WldTDelta;
_k_workload_delta;
}
#endif
#endif