Rename K_PipeCount to _k_pipe_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: I10a1bff593c56cf6703920b9feccd10e32cc65ef Signed-off-by: Yonattan Louise <yonattan.a.louise.mendoza@intel.com>
This commit is contained in:
parent
d109105597
commit
f282dbcb1f
4 changed files with 4 additions and 4 deletions
|
@ -82,7 +82,7 @@ extern int K_StackSize;
|
|||
extern int _k_task_count;
|
||||
extern int _k_mem_map_count;
|
||||
extern int _k_mem_pool_count;
|
||||
extern int K_PipeCount;
|
||||
extern int _k_pipe_count;
|
||||
extern const int K_max_eventnr;
|
||||
|
||||
extern PFN_CHANNEL_RWT pKS_Channel_PutWT;
|
||||
|
|
|
@ -43,7 +43,7 @@ void InitPipe(void)
|
|||
int i;
|
||||
struct pipe_struct *pPipe;
|
||||
|
||||
for (i = 0, pPipe = _k_pipe_list; i < K_PipeCount; i++, pPipe++) {
|
||||
for (i = 0, pPipe = _k_pipe_list; i < _k_pipe_count; i++, pPipe++) {
|
||||
pPipe->Readers = NULL;
|
||||
pPipe->Writers = NULL;
|
||||
BuffInit((unsigned char *)pPipe->Buffer,
|
||||
|
|
|
@ -58,7 +58,7 @@ extern struct pipe_struct _k_pipe_list[];
|
|||
extern int _k_mem_map_count;
|
||||
#endif
|
||||
extern int _k_mem_pool_count;
|
||||
extern int K_PipeCount;
|
||||
extern int _k_pipe_count;
|
||||
|
||||
extern struct k_proc *K_Task;
|
||||
extern uint32_t K_PrioBitMap[];
|
||||
|
|
|
@ -574,7 +574,7 @@ def kernel_main_c_pipes():
|
|||
|
||||
# pipe global variables
|
||||
|
||||
kernel_main_c_out("\nint K_PipeCount = %d;\n" % (total_pipes))
|
||||
kernel_main_c_out("\nint _k_pipe_count = %d;\n" % (total_pipes))
|
||||
|
||||
if (total_pipes == 0):
|
||||
kernel_main_c_out("\nstruct pipe_struct * _k_pipe_list = NULL;\n")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue