Rename WldN0 to _k_workload_n0
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: I99e5b8a15f6bee1cc7efb7a339c2e15076da90d3 Signed-off-by: Yonattan Louise <yonattan.a.louise.mendoza@intel.com>
This commit is contained in:
parent
1bd57ea4c6
commit
b96dd2669d
3 changed files with 5 additions and 5 deletions
|
@ -52,7 +52,7 @@ unsigned int _k_workload_ticks = 0x0;
|
|||
unsigned int _k_workload_ref_time = 0x0;
|
||||
unsigned int _k_workload_t0 = 0x0;
|
||||
unsigned int _k_workload_t1 = 0x0;
|
||||
volatile unsigned int WldN0 = 0x0;
|
||||
volatile unsigned int _k_workload_n0 = 0x0;
|
||||
volatile unsigned int WldN1 = 0x0;
|
||||
volatile unsigned int Wld_i = 0x0;
|
||||
volatile unsigned int Wld_i0 = 0x0;
|
||||
|
@ -113,7 +113,7 @@ static void _WlLoop(void)
|
|||
|
||||
void wlMonitorCalibrate(void)
|
||||
{
|
||||
WldN0 = Wld_i = 0;
|
||||
_k_workload_n0 = Wld_i = 0;
|
||||
WldN1 = 1000;
|
||||
|
||||
_k_workload_t0 = timer_read();
|
||||
|
@ -141,7 +141,7 @@ void K_workload(struct k_args *P)
|
|||
unsigned int k, t;
|
||||
signed int iret;
|
||||
|
||||
k = (Wld_i - WldN0) * _k_workload_ref_time;
|
||||
k = (Wld_i - _k_workload_n0) * _k_workload_ref_time;
|
||||
#ifdef WL_SCALE
|
||||
t = (timer_read() - _k_workload_t0) >> (K_wl_scale);
|
||||
#else
|
||||
|
|
|
@ -44,7 +44,7 @@ extern unsigned int _k_workload_ticks;
|
|||
extern unsigned int _k_workload_ref_time;
|
||||
extern unsigned int _k_workload_t0;
|
||||
extern unsigned int _k_workload_t1;
|
||||
extern volatile unsigned int WldN0;
|
||||
extern volatile unsigned int _k_workload_n0;
|
||||
extern volatile unsigned int WldN1;
|
||||
extern volatile unsigned int Wld_i;
|
||||
extern volatile unsigned int Wld_i0;
|
||||
|
|
|
@ -139,7 +139,7 @@ static inline void _WlMonitorUpdate(void)
|
|||
if (--_k_workload_ticks == 0) {
|
||||
_k_workload_t0 = _k_workload_t1;
|
||||
_k_workload_t1 = timer_read();
|
||||
WldN0 = WldN1;
|
||||
_k_workload_n0 = WldN1;
|
||||
WldN1 = Wld_i - 1;
|
||||
_k_workload_ticks = _k_workload_slice;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue