Rename WldT_end to _k_workload_end_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: I26bc34923ca3a5f9557138f062e0ed2346737ec2
Signed-off-by: Yonattan Louise <yonattan.a.louise.mendoza@intel.com>
This commit is contained in:
Yonattan Louise 2015-04-27 10:28:34 -05:00 committed by Anas Nashif
commit 25622e5dc4
3 changed files with 5 additions and 5 deletions

View file

@ -58,7 +58,7 @@ volatile unsigned int _k_workload_i = 0x0;
volatile unsigned int _k_workload_i0 = 0x0;
volatile unsigned int _k_workload_delta = 0x0;
volatile unsigned int _k_workload_start_time = 0x0;
volatile unsigned int WldT_end = 0x0;
volatile unsigned int _k_workload_end_time = 0x0;
#ifdef WL_SCALE
extern uint32_t K_wl_scale;

View file

@ -50,7 +50,7 @@ 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 _k_workload_start_time;
extern volatile unsigned int WldT_end;
extern volatile unsigned int _k_workload_end_time;
extern void enlist_timer(K_TIMER *T);
extern void delist_timer(K_TIMER *T);

View file

@ -146,14 +146,14 @@ FUNC_NORETURN void K_swapper(int parameter1, /* not used */
extern volatile unsigned int _k_workload_i0;
extern volatile unsigned int _k_workload_delta;
extern volatile unsigned int _k_workload_start_time;
extern volatile unsigned int WldT_end;
extern volatile unsigned int _k_workload_end_time;
if (pNextTask->Ident == 0x00000000) {
_k_workload_start_time = timer_read();
}
if (_k_current_task->Ident == 0x00000000) {
WldT_end = timer_read();
_k_workload_i += (_k_workload_i0 * (WldT_end - _k_workload_start_time)) /
_k_workload_end_time = timer_read();
_k_workload_i += (_k_workload_i0 * (_k_workload_end_time - _k_workload_start_time)) /
_k_workload_delta;
}
#endif