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:
parent
bade45d374
commit
fe95d5c018
|
@ -58,7 +58,7 @@ unsigned char _SysPowerSaveFlag = 1;
|
|||
#endif
|
||||
|
||||
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)
|
||||
/*
|
||||
|
@ -101,11 +101,11 @@ void _SysPowerSaveIdle(int32_t ticks)
|
|||
*/
|
||||
|
||||
if (_AdvIdleFunc(ticks) == 0) {
|
||||
nanoCpuSetIdle(ticks);
|
||||
nano_cpu_set_idle(ticks);
|
||||
nano_cpu_idle();
|
||||
}
|
||||
#else
|
||||
nanoCpuSetIdle(ticks);
|
||||
nano_cpu_set_idle(ticks);
|
||||
nano_cpu_idle();
|
||||
#endif /* CONFIG_ADVANCED_IDLE */
|
||||
}
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
@ -54,7 +54,7 @@ data structure.
|
|||
* \NOMANUAL
|
||||
*/
|
||||
|
||||
void nanoCpuSetIdle(int32_t ticks)
|
||||
void nano_cpu_set_idle(int32_t ticks)
|
||||
{
|
||||
extern tNANO _NanoKernel;
|
||||
_NanoKernel.idle = ticks;
|
||||
|
|
Loading…
Reference in a new issue