Renaming K_yield to _k_task_yield

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 "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: Ie07e38bca912647e49a2c0914001690b7c545f3b
Signed-off-by: Dan Kalowsky <daniel.kalowsky@intel.com>
This commit is contained in:
Dan Kalowsky 2015-04-28 11:35:51 -07:00 committed by Anas Nashif
commit fb0cf2ed7d
6 changed files with 8 additions and 8 deletions

View file

@ -82,7 +82,7 @@ extern void K_wakeup(struct k_args *);
extern void _k_task_op(struct k_args *);
extern void _k_task_group_op(struct k_args *);
extern void _k_task_priority_set(struct k_args *);
extern void K_yield(struct k_args *);
extern void _k_task_yield(struct k_args *);
extern void K_alloc(struct k_args *);
extern void K_dealloc(struct k_args *);
extern void K_alloc_timer(struct k_args *);

View file

@ -43,6 +43,6 @@ extern void abort_task(struct k_proc *X);
extern void _k_task_op(struct k_args *A);
extern void _k_task_group_op(struct k_args *A);
extern void _k_task_priority_set(struct k_args *A);
extern void K_yield(struct k_args *A);
extern void _k_task_yield(struct k_args *A);
#endif

View file

@ -413,12 +413,12 @@ void task_priority_set(ktask_t task, /* task whose priority is to be set */
/*******************************************************************************
*
* K_yield - handle task yield request
* _k_task_yield - handle task yield request
*
* RETURNS: N/A
*/
void K_yield(struct k_args *A)
void _k_task_yield(struct k_args *A)
{
struct k_tqhd *H = _k_task_priority_list + _k_current_task->Prio;
struct k_proc *X = _k_current_task->Forw;

View file

@ -42,7 +42,7 @@ This module implements the microkernel's tick event handler.
#include <minik.h>
#include <kticks.h> /* WL stuff */
#include <drivers/system_timer.h>
#include <ktask.h> /* K_yield */
#include <ktask.h> /* _k_task_yield */
#include <microkernel.h>
#include <microkernel/ticks.h>
#include <toolchain.h>
@ -191,7 +191,7 @@ static inline void _TimeSliceUpdate(void)
(++slice_count >= slice_time);
if (yield) {
slice_count = 0;
K_yield(NULL);
_k_task_yield(NULL);
}
#else
/* do nothing */

View file

@ -33,7 +33,7 @@
#include <microkernel/k_struct.h>
#include <minik.h>
#include <kticks.h> /* WL and timeslice stuff */
#include <ktask.h> /* K_yield */
#include <ktask.h> /* _k_task_yield */
#include <microkernel/ticks.h>
#include <nanokernel/cpu.h>
#include <toolchain.h>

View file

@ -800,7 +800,7 @@ def kernel_main_c_kernel_services():
"/* 43 */ _k_task_op,", # required
"/* 44 */ _k_task_group_op,", # required
"/* 45 */ _k_task_priority_set,", # required
"/* 46 */ K_yield,", # required
"/* 46 */ _k_task_yield,", # required
"/* 47 */ K_alloc,", # depends on memory maps
"/* 48 */ K_dealloc,", # depends on memory maps
"/* 49 */ K_alloc_timer,", # depends on timers