Browse Source

Rename wlMonitorCalibrate to workload_monitor_calibrate

Updating micro kernel functions to follow a consistent naming
convention.  Part of that process is the removal of camelCase
naming conventions for the preferred_underscore_method.

Change accomplished with the following script:

echo "Searching for ${1} to replace with ${2}"

echo "Checking C, CPP, H, HPP, and s files..."
find . -type f \( -iname \*.[ch] -o -iname \*.[ch]pp -o -iname \*.s \) \
       -not \( -path host/src/genIdt -prune \) \
       -not \( -path host/src/gen_tables -prune \) \
       -print | xargs sed -i "s/"${1}"/"${2}"/g"

echo "Checking KCONF, LST, and PY files..."
find . -type f \( -iname \*.lst -o -iname \*.kconf -o -iname \*.py \) \
       -not \( -path host/src/genIdt -prune \) \
       -not \( -path host/src/gen_tables -prune \) \
       -print | xargs sed -i "s/"${1}"/"${2}"/g"

Change-Id: Ifca97426eeb9347374af392508f3a5526c3410b5
Signed-off-by: Dan Kalowsky <daniel.kalowsky@intel.com>
pull/255/head
Dan Kalowsky 10 years ago committed by Anas Nashif
parent
commit
43779366ad
  1. 2
      kernel/microkernel/core/global.c
  2. 4
      kernel/microkernel/idle.c
  3. 2
      kernel/microkernel/include/minik.h

2
kernel/microkernel/core/global.c

@ -100,6 +100,6 @@ void kernel_init(void) @@ -100,6 +100,6 @@ void kernel_init(void)
init_drivers();
#ifdef CONFIG_WORKLOAD_MONITOR
wlMonitorCalibrate();
workload_monitor_calibrate();
#endif
}

4
kernel/microkernel/idle.c

@ -102,7 +102,7 @@ static void _workload_loop(void) @@ -102,7 +102,7 @@ static void _workload_loop(void)
/*******************************************************************************
*
* wlMonitorCalibrate - calibrate the workload monitoring subsystem
* workload_monitor_calibrate - calibrate the workload monitoring subsystem
*
* Measures the time required to do a fixed amount of "dummy work", and
* sets default values for the workload measuring period.
@ -111,7 +111,7 @@ static void _workload_loop(void) @@ -111,7 +111,7 @@ static void _workload_loop(void)
*
*/
void wlMonitorCalibrate(void)
void workload_monitor_calibrate(void)
{
_k_workload_n0 = _k_workload_i = 0;
_k_workload_n1 = 1000;

2
kernel/microkernel/include/minik.h

@ -186,7 +186,7 @@ extern const int _k_monitor_mask; @@ -186,7 +186,7 @@ extern const int _k_monitor_mask;
#ifdef CONFIG_WORKLOAD_MONITOR
extern void wlMonitorCalibrate(void);
extern void workload_monitor_calibrate(void);
#endif

Loading…
Cancel
Save