Rename _SysIdleThresholdTicks to _sys_idle_threshold_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: I4b7f7806fcfcbeed1abbc2421c3fc470af87eb7d
Signed-off-by: Yonattan Louise <yonattan.a.louise.mendoza@intel.com>
This commit is contained in:
Yonattan Louise 2015-04-27 10:28:35 -05:00 committed by Anas Nashif
parent d7af5727e8
commit a9c772cbb6
2 changed files with 7 additions and 7 deletions

View file

@ -65,7 +65,7 @@ extern void nano_cpu_set_idle(int32_t ticks);
* Idle time must be this value or higher for timer to go into tickless idle
* state.
*/
int32_t _SysIdleThresholdTicks =
int32_t _sys_idle_threshold_ticks =
CONFIG_TICKLESS_IDLE_THRESH;
#endif /* CONFIG_TICKLESS_IDLE */
@ -85,7 +85,7 @@ int32_t _SysIdleThresholdTicks =
void _SysPowerSaveIdle(int32_t ticks)
{
#if defined(CONFIG_TICKLESS_IDLE)
if ((ticks == -1) || ticks >= _SysIdleThresholdTicks) {
if ((ticks == -1) || ticks >= _sys_idle_threshold_ticks) {
/* Put the system timer into idle state until the next timer
* event */
_timer_idle_enter(ticks);
@ -126,7 +126,7 @@ void _SysPowerSaveIdle(int32_t ticks)
void _SysPowerSaveIdleExit(int32_t ticks)
{
#ifdef CONFIG_TICKLESS_IDLE
if ((ticks == -1) || ticks >= _SysIdleThresholdTicks) {
if ((ticks == -1) || ticks >= _sys_idle_threshold_ticks) {
_timer_idle_exit();
}
#else

View file

@ -44,7 +44,7 @@ Unit test for tickless idle feature.
#define SLEEP_TICKS 10
#ifdef CONFIG_TICKLESS_IDLE
extern int32_t _SysIdleThresholdTicks;
extern int32_t _sys_idle_threshold_ticks;
#endif
/* Clock speed - will change from BSP to BSP */
@ -110,9 +110,9 @@ void ticklessTestTask (void)
printk("Calibrating TSC...\n");
#ifdef CONFIG_TICKLESS_IDLE
oldThreshold = _SysIdleThresholdTicks;
oldThreshold = _sys_idle_threshold_ticks;
/* make sure we do not enter tickless idle mode */
_SysIdleThresholdTicks = 0x7FFFFFFF;
_sys_idle_threshold_ticks = 0x7FFFFFFF;
#endif
/* initialize the timer, if necessary */
@ -144,7 +144,7 @@ void ticklessTestTask (void)
printk("Do the real test with tickless enabled\n");
#ifdef CONFIG_TICKLESS_IDLE
_SysIdleThresholdTicks = oldThreshold;
_sys_idle_threshold_ticks = oldThreshold;
#endif
printk("Going idle for %d ticks...\n", SLEEP_TICKS);