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:
Dan Kalowsky 2015-04-28 11:35:51 -07:00 committed by Anas Nashif
commit bae67b2b58
5 changed files with 10 additions and 10 deletions

View file

@ -122,7 +122,7 @@ SECTION_FUNC(TEXT, _NanoIdleValClear)
* nano_cpu_idle - power save idle routine for ARM Cortex-M
*
* 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
* will be issued, causing a low-power consumption sleep mode.
*

View file

@ -34,7 +34,7 @@
DESCRIPTION
This module provides an implementation of the architecture-specific
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.
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
*
* 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
* will be issued causing a low-power consumption sleep mode.
*

View file

@ -237,7 +237,7 @@ static inline int32_t _get_next_timer_expiry(void)
* _power_save - power saving when idle
*
* 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
* mechanism.
*
@ -249,13 +249,13 @@ static void _power_save(void)
{
extern void nano_cpu_idle(void);
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) {
for (;;) {
irq_lock_inline();
#ifdef CONFIG_ADVANCED_POWER_MANAGEMENT
_SysPowerSaveIdle(_get_next_timer_expiry());
_sys_power_save_idle(_get_next_timer_expiry());
#else
/*
* nano_cpu_idle () is invoked here directly only if APM

View file

@ -32,7 +32,7 @@
/*
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.
\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
* until the timer expires, in system ticks.
@ -82,7 +82,7 @@ int32_t _sys_idle_threshold_ticks =
* \NOMANUAL
*/
void _SysPowerSaveIdle(int32_t ticks)
void _sys_power_save_idle(int32_t ticks)
{
#if defined(CONFIG_TICKLESS_IDLE)
if ((ticks == -1) || ticks >= _sys_idle_threshold_ticks) {

View file

@ -43,7 +43,7 @@ config ADVANCED_POWER_MANAGEMENT
This option enables the BSP to implement extra power management
policies whenever the kernel becomes idle. The kernel informs the
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
bool