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:
parent
25622e5dc4
commit
d7af5727e8
4 changed files with 7 additions and 7 deletions
|
@ -123,7 +123,7 @@ SECTION_FUNC(TEXT, _NanoIdleValClear)
|
|||
*
|
||||
* This function will be called by the nanokernel idle loop or possibly within
|
||||
* 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.
|
||||
*
|
||||
* RETURNS: N/A
|
||||
|
|
|
@ -70,7 +70,7 @@ by nano_cpu_atomic_idle().
|
|||
*
|
||||
* This function will be called by the nanokernel idle loop or possibly within
|
||||
* 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.
|
||||
*
|
||||
* RETURNS: N/A
|
||||
|
|
|
@ -236,7 +236,7 @@ static inline int32_t _GetNextTimerExpiry(void)
|
|||
*
|
||||
* _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,
|
||||
* this routine will fall through and kernel_idle() will try the next idling
|
||||
* mechanism.
|
||||
|
@ -248,10 +248,10 @@ static inline int32_t _GetNextTimerExpiry(void)
|
|||
static void _PowerSave(void)
|
||||
{
|
||||
extern void nano_cpu_idle(void);
|
||||
extern unsigned char _SysPowerSaveFlag;
|
||||
extern unsigned char _sys_power_save_flag;
|
||||
extern void _SysPowerSaveIdle(int32_t ticks);
|
||||
|
||||
if (_SysPowerSaveFlag) {
|
||||
if (_sys_power_save_flag) {
|
||||
for (;;) {
|
||||
irq_lock_inline();
|
||||
#ifdef CONFIG_ADVANCED_POWER_MANAGEMENT
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
|
||||
/*
|
||||
DESCRIPTION
|
||||
This module provides _SysPowerSaveFlag and _SysPowerSaveIdle(),
|
||||
This module provides _sys_power_save_flag and _SysPowerSaveIdle(),
|
||||
invoked within the microkernel idle loop.
|
||||
|
||||
\INTERNAL
|
||||
|
@ -42,7 +42,7 @@ invoked within the microkernel idle loop.
|
|||
#include <toolchain.h>
|
||||
#include <sections.h>
|
||||
|
||||
unsigned char _SysPowerSaveFlag = 1;
|
||||
unsigned char _sys_power_save_flag = 1;
|
||||
|
||||
#if defined(CONFIG_ADVANCED_POWER_MANAGEMENT)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue