Renaming InitPools to _mem_pools_init

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 "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"

Change-Id: I9f3fc202c580d158a18737ff0f16a25952902ae4
Signed-off-by: Dan Kalowsky <daniel.kalowsky@intel.com>
This commit is contained in:
Dan Kalowsky 2015-04-28 11:35:50 -07:00 committed by Anas Nashif
commit a536a18693
3 changed files with 4 additions and 4 deletions

View file

@ -37,7 +37,7 @@
extern "C" {
#endif
extern void InitPools(void);
extern void _mem_pools_init(void);
extern int _task_mem_pool_alloc(struct k_block *B, kmemory_pool_t pid, int size, int32_t time);

View file

@ -47,14 +47,14 @@
/*******************************************************************************
*
* InitPools - initialize kernel memory pool subsystem
* _mem_pools_init - initialize kernel memory pool subsystem
*
* Perform any initialization of memory pool that wasn't done at build time.
*
* RETURNS: N/A
*/
void InitPools(void)
void _mem_pools_init(void)
{
int i, j, k;
struct pool_struct *P;

View file

@ -952,7 +952,7 @@ def kernel_main_c_node_init():
if (len(map_list) > 0):
kernel_main_c_out(" _mem_map_init();\n")
if (len(pool_list) > 0):
kernel_main_c_out(" InitPools();\n")
kernel_main_c_out(" _mem_pools_init();\n")
kernel_main_c_out("}\n")