Renaming nanoCpuSetIdle to nano_cpu_set_idle

Updating nano kernel functions to follow a consistent naming convention.
Part of that process is the removal of camelCase naming conventions for the
preferred_underscore_method.

Changing with the following script:

#!/bin/bash
echo "Searching for ${1} to replace with ${2}"
find . -type f \( -iname \*.c -o -iname \*.h -o -iname \*.s \) \
       -not \( -path host/src/genIdt -prune \) \   \
       -not \( -path host/src/gen_tables -prune \) \
       -print | xargs sed -i "s/"${1}"/"${2}"/g"

Signed-off-by: Dan Kalowsky <daniel.kalowsky@intel.com>
This commit is contained in:
Dan Kalowsky 2015-04-16 12:25:10 -07:00 committed by Anas Nashif
commit fe95d5c018
2 changed files with 5 additions and 5 deletions

View file

@ -58,7 +58,7 @@ unsigned char _SysPowerSaveFlag = 1;
#endif #endif
extern void nano_cpu_idle(void); extern void nano_cpu_idle(void);
extern void nanoCpuSetIdle(int32_t ticks); extern void nano_cpu_set_idle(int32_t ticks);
#if defined(CONFIG_TICKLESS_IDLE) #if defined(CONFIG_TICKLESS_IDLE)
/* /*
@ -101,11 +101,11 @@ void _SysPowerSaveIdle(int32_t ticks)
*/ */
if (_AdvIdleFunc(ticks) == 0) { if (_AdvIdleFunc(ticks) == 0) {
nanoCpuSetIdle(ticks); nano_cpu_set_idle(ticks);
nano_cpu_idle(); nano_cpu_idle();
} }
#else #else
nanoCpuSetIdle(ticks); nano_cpu_set_idle(ticks);
nano_cpu_idle(); nano_cpu_idle();
#endif /* CONFIG_ADVANCED_IDLE */ #endif /* CONFIG_ADVANCED_IDLE */
} }

View file

@ -45,7 +45,7 @@ data structure.
/******************************************************************************* /*******************************************************************************
* *
* nanoCpuSetIdle - indicate that nanokernel is idling in tickless mode * nano_cpu_set_idle - indicate that nanokernel is idling in tickless mode
* *
* Sets the nanokernel data structure idle field to a non-zero value. * Sets the nanokernel data structure idle field to a non-zero value.
* *
@ -54,7 +54,7 @@ data structure.
* \NOMANUAL * \NOMANUAL
*/ */
void nanoCpuSetIdle(int32_t ticks) void nano_cpu_set_idle(int32_t ticks)
{ {
extern tNANO _NanoKernel; extern tNANO _NanoKernel;
_NanoKernel.idle = ticks; _NanoKernel.idle = ticks;