Rename WldTicks to _k_workload_ticks

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

View file

@ -48,7 +48,7 @@ task, depending on how the kernel is configured.
#if defined(CONFIG_WORKLOAD_MONITOR)
unsigned int _k_workload_slice = 0x0;
unsigned int WldTicks = 0x0;
unsigned int _k_workload_ticks = 0x0;
unsigned int WldRefT = 0x0;
unsigned int WldT0 = 0x0;
unsigned int WldT1 = 0x0;
@ -129,7 +129,7 @@ void wlMonitorCalibrate(void)
#endif
_k_workload_slice = 100;
WldTicks = 100;
_k_workload_ticks = 100;
}
#endif /* CONFIG_WORKLOAD_MONITOR */

View file

@ -40,7 +40,7 @@ extern K_TIMER *_k_timer_list_head;
extern K_TIMER *_k_timer_list_tail;
extern int64_t _k_sys_clock_tick_count;
extern unsigned int _k_workload_slice;
extern unsigned int WldTicks;
extern unsigned int _k_workload_ticks;
extern unsigned int WldRefT;
extern unsigned int WldT0;
extern unsigned int WldT1;

View file

@ -136,12 +136,12 @@ static inline void _HandleExpiredTimers(int ticks)
static inline void _WlMonitorUpdate(void)
{
#ifdef CONFIG_WORKLOAD_MONITOR
if (--WldTicks == 0) {
if (--_k_workload_ticks == 0) {
WldT0 = WldT1;
WldT1 = timer_read();
WldN0 = WldN1;
WldN1 = Wld_i - 1;
WldTicks = _k_workload_slice;
_k_workload_ticks = _k_workload_slice;
}
#else
/* do nothing */