From fe95d5c018a7766195667e764cb28eeee4a9bb83 Mon Sep 17 00:00:00 2001 From: Dan Kalowsky Date: Thu, 16 Apr 2015 12:25:10 -0700 Subject: [PATCH] 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 --- kernel/microkernel/power.c | 6 +++--- kernel/nanokernel/core/idle.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/kernel/microkernel/power.c b/kernel/microkernel/power.c index b41fd911279..2154fab42b7 100644 --- a/kernel/microkernel/power.c +++ b/kernel/microkernel/power.c @@ -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 */ } diff --git a/kernel/nanokernel/core/idle.c b/kernel/nanokernel/core/idle.c index 24e1aa834bd..cd3f9583c11 100644 --- a/kernel/nanokernel/core/idle.c +++ b/kernel/nanokernel/core/idle.c @@ -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;