Renaming _SysPowerSaveIdle to _sys_power_save_idle
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: #!/bin/bash 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: I2cf754540cdca1b107898241d8016613711f677b Signed-off-by: Dan Kalowsky <daniel.kalowsky@intel.com>
This commit is contained in:
parent
3550116e82
commit
bae67b2b58
5 changed files with 10 additions and 10 deletions
|
@ -122,7 +122,7 @@ SECTION_FUNC(TEXT, _NanoIdleValClear)
|
||||||
* nano_cpu_idle - power save idle routine for ARM Cortex-M
|
* nano_cpu_idle - power save idle routine for ARM Cortex-M
|
||||||
*
|
*
|
||||||
* 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 _sys_power_save_idle in the microkernel when the
|
||||||
* '_sys_power_save_flag' 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.
|
||||||
*
|
*
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
DESCRIPTION
|
DESCRIPTION
|
||||||
This module provides an implementation of the architecture-specific
|
This module provides an implementation of the architecture-specific
|
||||||
nano_cpu_idle() primitive required by the nanokernel idle loop component.
|
nano_cpu_idle() primitive required by the nanokernel idle loop component.
|
||||||
It can be called within an implementation of _SysPowerSaveIdle(),
|
It can be called within an implementation of _sys_power_save_idle(),
|
||||||
which is provided for the microkernel by the BSP.
|
which is provided for the microkernel by the BSP.
|
||||||
|
|
||||||
The module also provides an implementation of nano_cpu_atomic_idle(), which
|
The module also provides an implementation of nano_cpu_atomic_idle(), which
|
||||||
|
@ -69,7 +69,7 @@ by nano_cpu_atomic_idle().
|
||||||
* nano_cpu_idle - power save idle routine for IA-32
|
* nano_cpu_idle - power save idle routine for IA-32
|
||||||
*
|
*
|
||||||
* 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 _sys_power_save_idle in the microkernel when the
|
||||||
* '_sys_power_save_flag' 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.
|
||||||
*
|
*
|
||||||
|
|
|
@ -237,7 +237,7 @@ static inline int32_t _get_next_timer_expiry(void)
|
||||||
* _power_save - power saving when idle
|
* _power_save - power saving when idle
|
||||||
*
|
*
|
||||||
* If the BSP sets the _sys_power_save_flag 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,
|
* _sys_power_save_idle() 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.
|
||||||
*
|
*
|
||||||
|
@ -249,13 +249,13 @@ static void _power_save(void)
|
||||||
{
|
{
|
||||||
extern void nano_cpu_idle(void);
|
extern void nano_cpu_idle(void);
|
||||||
extern unsigned char _sys_power_save_flag;
|
extern unsigned char _sys_power_save_flag;
|
||||||
extern void _SysPowerSaveIdle(int32_t ticks);
|
extern void _sys_power_save_idle(int32_t ticks);
|
||||||
|
|
||||||
if (_sys_power_save_flag) {
|
if (_sys_power_save_flag) {
|
||||||
for (;;) {
|
for (;;) {
|
||||||
irq_lock_inline();
|
irq_lock_inline();
|
||||||
#ifdef CONFIG_ADVANCED_POWER_MANAGEMENT
|
#ifdef CONFIG_ADVANCED_POWER_MANAGEMENT
|
||||||
_SysPowerSaveIdle(_get_next_timer_expiry());
|
_sys_power_save_idle(_get_next_timer_expiry());
|
||||||
#else
|
#else
|
||||||
/*
|
/*
|
||||||
* nano_cpu_idle () is invoked here directly only if APM
|
* nano_cpu_idle () is invoked here directly only if APM
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
|
|
||||||
/*
|
/*
|
||||||
DESCRIPTION
|
DESCRIPTION
|
||||||
This module provides _sys_power_save_flag and _SysPowerSaveIdle(),
|
This module provides _sys_power_save_flag and _sys_power_save_idle(),
|
||||||
invoked within the microkernel idle loop.
|
invoked within the microkernel idle loop.
|
||||||
|
|
||||||
\INTERNAL
|
\INTERNAL
|
||||||
|
@ -71,7 +71,7 @@ int32_t _sys_idle_threshold_ticks =
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
*
|
*
|
||||||
* _SysPowerSaveIdle - power management policy when kernel is idle
|
* _sys_power_save_idle - power management policy when kernel is idle
|
||||||
*
|
*
|
||||||
* This routine implements the power management policy based on the time
|
* This routine implements the power management policy based on the time
|
||||||
* until the timer expires, in system ticks.
|
* until the timer expires, in system ticks.
|
||||||
|
@ -82,7 +82,7 @@ int32_t _sys_idle_threshold_ticks =
|
||||||
* \NOMANUAL
|
* \NOMANUAL
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void _SysPowerSaveIdle(int32_t ticks)
|
void _sys_power_save_idle(int32_t ticks)
|
||||||
{
|
{
|
||||||
#if defined(CONFIG_TICKLESS_IDLE)
|
#if defined(CONFIG_TICKLESS_IDLE)
|
||||||
if ((ticks == -1) || ticks >= _sys_idle_threshold_ticks) {
|
if ((ticks == -1) || ticks >= _sys_idle_threshold_ticks) {
|
||||||
|
|
|
@ -43,7 +43,7 @@ config ADVANCED_POWER_MANAGEMENT
|
||||||
This option enables the BSP to implement extra power management
|
This option enables the BSP to implement extra power management
|
||||||
policies whenever the kernel becomes idle. The kernel informs the
|
policies whenever the kernel becomes idle. The kernel informs the
|
||||||
BSP of the number of ticks until the next kernel timer expires by
|
BSP of the number of ticks until the next kernel timer expires by
|
||||||
calling the BSP function _SysPowerSaveIdle().
|
calling the BSP function _sys_power_save_idle().
|
||||||
|
|
||||||
config TICKLESS_IDLE
|
config TICKLESS_IDLE
|
||||||
bool
|
bool
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue