Renaming _PowerSave to _power_save

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 "Searching for ${1} to replace with ${2}"

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: I71b09ddc214c360c61b4736cef72597334bc47f3
Signed-off-by: Dan Kalowsky <daniel.kalowsky@intel.com>
This commit is contained in:
Dan Kalowsky 2015-04-28 11:35:49 -07:00 committed by Anas Nashif
parent 1e511b2066
commit 58d8a4020c
1 changed files with 4 additions and 4 deletions

View File

@ -234,7 +234,7 @@ static inline int32_t _get_next_timer_expiry(void)
/*******************************************************************************
*
* _PowerSave - 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
* _SysPowerSaveIdle() routine in an infinite loop. If the flag is not set,
@ -245,7 +245,7 @@ static inline int32_t _get_next_timer_expiry(void)
*
*/
static void _PowerSave(void)
static void _power_save(void)
{
extern void nano_cpu_idle(void);
extern unsigned char _sys_power_save_flag;
@ -269,7 +269,7 @@ static void _PowerSave(void)
}
/*
* Code analyzers may complain that _PowerSave() uses an
* Code analyzers may complain that _power_save() uses an
* infinite loop
* unless we indicate that this is intentional
*/
@ -292,7 +292,7 @@ static void _PowerSave(void)
int kernel_idle(void)
{
_PowerSave(); /* never returns if power saving is enabled */
_power_save(); /* never returns if power saving is enabled */
#ifdef CONFIG_BOOT_TIME_MEASUREMENT
/* Power saving not enabled, so record timestamp when idle begins here