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:
parent
5c3646b5d9
commit
d109105597
4 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue