Rename K_TaskCount to _k_task_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: Iafa862861cc6b56212c036acc0bb182e2c620e7b
Signed-off-by: Yonattan Louise <yonattan.a.louise.mendoza@intel.com>
This commit is contained in:
Yonattan Louise 2015-04-27 10:28:23 -05:00 committed by Anas Nashif
commit 3473bb7609
5 changed files with 6 additions and 6 deletions

View file

@ -79,7 +79,7 @@ extern void init_drivers(void); /* generated function */
extern const knode_t _k_this_node;
extern int K_StackSize;
extern int K_TaskCount;
extern int _k_task_count;
extern int K_MapCount;
extern int K_PoolCount;
extern int K_PipeCount;

View file

@ -42,7 +42,7 @@ extern const knode_t _k_this_node;
extern struct k_proc _k_task_list[];
extern struct k_tqhd _k_task_priority_list[];
extern int K_TaskCount;
extern int _k_task_count;
#ifndef LITE
extern struct map_struct K_MapList[];

View file

@ -318,7 +318,7 @@ void K_groupop(struct k_args *A)
K_DebugHalt = 0;
#endif
for (i = 0, X = _k_task_list; i < K_TaskCount; i++, X++) {
for (i = 0, X = _k_task_list; i < _k_task_count; i++, X++) {
if (X->Group & grp) {
switch (opt) {
case GROUP_TASK_START:

View file

@ -173,8 +173,8 @@ void _nano_init(tCCS *dummyOutContext, int argc, char *argv[], char *envp[])
/* fill in microkernel's TCB, which is the last element in _k_task_list[]
*/
_k_task_list[K_TaskCount].workspace = (char *)_NanoKernel.task;
_k_task_list[K_TaskCount].worksize = CONFIG_MAIN_STACK_SIZE;
_k_task_list[_k_task_count].workspace = (char *)_NanoKernel.task;
_k_task_list[_k_task_count].worksize = CONFIG_MAIN_STACK_SIZE;
#endif
/*

View file

@ -366,7 +366,7 @@ def kernel_main_c_tasks():
# task global variables
kernel_main_c_out("\nint K_TaskCount = %d;\n" % (total_tasks - 1))
kernel_main_c_out("\nint _k_task_count = %d;\n" % (total_tasks - 1))
# task stack areas