Replacing _TimerStop with _timer_stop

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.

Change accomplished 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 -o -iname \*.kconf \) \
       -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:11 -07:00 committed by Anas Nashif
parent d5e175231d
commit adf4739424

View file

@ -131,7 +131,7 @@ void _timer_start(struct nano_timer *timer, /* timer to start */
/*******************************************************************************
*
* _TimerStop - stop a nanokernel timer (generic implementation)
* _timer_stop - stop a nanokernel timer (generic implementation)
*
* This function stops a previously started nanokernel timer object.
*
@ -140,7 +140,7 @@ void _timer_start(struct nano_timer *timer, /* timer to start */
* NOMANUAL
*/
static void _TimerStop(struct nano_timer *timer /* timer to stop */
static void _timer_stop(struct nano_timer *timer /* timer to stop */
)
{
unsigned int imask;
@ -192,7 +192,7 @@ void nano_fiber_timer_stop(struct nano_timer *timer /* timer to stop */
)
{
_TimerStop(timer);
_timer_stop(timer);
/* if there was a waiter, kick it */
if (timer->lifo.proc) {
@ -214,7 +214,7 @@ void nano_task_timer_stop(struct nano_timer *timer /* timer to stop */
)
{
_TimerStop(timer);
_timer_stop(timer);
/* if there was a waiter, kick it */
if (timer->lifo.proc) {