From 58d8a4020cfb557da397e9e1ecd09f5046b88c2d Mon Sep 17 00:00:00 2001 From: Dan Kalowsky Date: Tue, 28 Apr 2015 11:35:49 -0700 Subject: [PATCH] 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 --- kernel/microkernel/idle.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel/microkernel/idle.c b/kernel/microkernel/idle.c index 3e375e823c2..4c53c63242b 100644 --- a/kernel/microkernel/idle.c +++ b/kernel/microkernel/idle.c @@ -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