Rename _SysPowerSaveFlag to _sys_power_save_flag

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: Ide44a5957321a1dd2971a341da2d35dfb1e0d0ac
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 d7af5727e8
4 changed files with 7 additions and 7 deletions

View file

@ -123,7 +123,7 @@ SECTION_FUNC(TEXT, _NanoIdleValClear)
* *
* This function will be called by the nanokernel idle loop or possibly within * This function will be called by the nanokernel idle loop or possibly within
* an implementation of _SysPowerSaveIdle in the microkernel when the * an implementation of _SysPowerSaveIdle in the microkernel when the
* '_SysPowerSaveFlag' variable is non-zero. The ARM 'wfi' instruction * '_sys_power_save_flag' variable is non-zero. The ARM 'wfi' instruction
* will be issued, causing a low-power consumption sleep mode. * will be issued, causing a low-power consumption sleep mode.
* *
* RETURNS: N/A * RETURNS: N/A

View file

@ -70,7 +70,7 @@ by nano_cpu_atomic_idle().
* *
* This function will be called by the nanokernel idle loop or possibly within * This function will be called by the nanokernel idle loop or possibly within
* an implementation of _SysPowerSaveIdle in the microkernel when the * an implementation of _SysPowerSaveIdle in the microkernel when the
* '_SysPowerSaveFlag' variable is non-zero. The IA-32 'hlt' instruction * '_sys_power_save_flag' variable is non-zero. The IA-32 'hlt' instruction
* will be issued causing a low-power consumption sleep mode. * will be issued causing a low-power consumption sleep mode.
* *
* RETURNS: N/A * RETURNS: N/A

View file

@ -236,7 +236,7 @@ static inline int32_t _GetNextTimerExpiry(void)
* *
* _PowerSave - power saving when idle * _PowerSave - power saving when idle
* *
* If the BSP sets the _SysPowerSaveFlag flag, this routine will call the * If the BSP sets the _sys_power_save_flag flag, this routine will call the
* _SysPowerSaveIdle() routine in an infinite loop. If the flag is not set, * _SysPowerSaveIdle() routine in an infinite loop. If the flag is not set,
* this routine will fall through and kernel_idle() will try the next idling * this routine will fall through and kernel_idle() will try the next idling
* mechanism. * mechanism.
@ -248,10 +248,10 @@ static inline int32_t _GetNextTimerExpiry(void)
static void _PowerSave(void) static void _PowerSave(void)
{ {
extern void nano_cpu_idle(void); extern void nano_cpu_idle(void);
extern unsigned char _SysPowerSaveFlag; extern unsigned char _sys_power_save_flag;
extern void _SysPowerSaveIdle(int32_t ticks); extern void _SysPowerSaveIdle(int32_t ticks);
if (_SysPowerSaveFlag) { if (_sys_power_save_flag) {
for (;;) { for (;;) {
irq_lock_inline(); irq_lock_inline();
#ifdef CONFIG_ADVANCED_POWER_MANAGEMENT #ifdef CONFIG_ADVANCED_POWER_MANAGEMENT

View file

@ -32,7 +32,7 @@
/* /*
DESCRIPTION DESCRIPTION
This module provides _SysPowerSaveFlag and _SysPowerSaveIdle(), This module provides _sys_power_save_flag and _SysPowerSaveIdle(),
invoked within the microkernel idle loop. invoked within the microkernel idle loop.
\INTERNAL \INTERNAL
@ -42,7 +42,7 @@ invoked within the microkernel idle loop.
#include <toolchain.h> #include <toolchain.h>
#include <sections.h> #include <sections.h>
unsigned char _SysPowerSaveFlag = 1; unsigned char _sys_power_save_flag = 1;
#if defined(CONFIG_ADVANCED_POWER_MANAGEMENT) #if defined(CONFIG_ADVANCED_POWER_MANAGEMENT)