Rename K_PoolCount to _k_mem_pool_count

Updating global variable's name to follow a consistent naming convention.

Change accomplished with the following script:

   #!/bin/bash
   echo "Searching for ${1} to replace with ${2}"
   find ./ \( -name "*.[chs]" -o -name "sysgen.py" -o -name "*.kconf" \) \
            ! -path "./host/src/genIdt/*" \
            ! -path "*/outdir/*" | xargs sed -i 's/\b'${1}'\b/'${2}'/g';

Change-Id: I413e59e0200c2b8eba1bee79e444b3492de8fb7c
Signed-off-by: Yonattan Louise <yonattan.a.louise.mendoza@intel.com>
This commit is contained in:
Yonattan Louise 2015-04-27 10:28:26 -05:00 committed by Anas Nashif
commit d109105597
4 changed files with 4 additions and 4 deletions

View file

@ -81,7 +81,7 @@ extern int K_StackSize;
extern int _k_task_count;
extern int _k_mem_map_count;
extern int K_PoolCount;
extern int _k_mem_pool_count;
extern int K_PipeCount;
extern const int K_max_eventnr;

View file

@ -57,7 +57,7 @@ extern struct pipe_struct _k_pipe_list[];
#ifndef LITE
extern int _k_mem_map_count;
#endif
extern int K_PoolCount;
extern int _k_mem_pool_count;
extern int K_PipeCount;
extern struct k_proc *K_Task;

View file

@ -61,7 +61,7 @@ void InitPools(void)
char *memptr;
/* for all pools initialise largest blocks */
for (i = 0, P = _k_mem_pool_list; i < K_PoolCount; i++, P++) {
for (i = 0, P = _k_mem_pool_list; i < _k_mem_pool_count; i++, P++) {
int remaining = P->nr_of_maxblocks;
int t = 0;

View file

@ -667,7 +667,7 @@ def kernel_main_c_pools():
# pool global variables
kernel_main_c_out("\nint K_PoolCount = %d;\n" % (total_pools))
kernel_main_c_out("\nint _k_mem_pool_count = %d;\n" % (total_pools))
if (total_pools == 0):
kernel_main_c_out("\nstruct pool_struct * _k_mem_pool_list = NULL;\n")