Rename K_DebugHalt to _k_debug_halt

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: Ia591e26dc082302ea4333deeb132d1732700e63e
Signed-off-by: Yonattan Louise <yonattan.a.louise.mendoza@intel.com>
This commit is contained in:
Yonattan Louise 2015-04-27 10:28:30 -05:00 committed by Anas Nashif
commit 7ca6ed4a8c
5 changed files with 7 additions and 7 deletions

View file

@ -55,7 +55,7 @@ struct nano_stack __noinit _k_command_stack;
#ifdef CONFIG_TASK_DEBUG #ifdef CONFIG_TASK_DEBUG
int K_DebugHalt = 0; int _k_debug_halt = 0;
#endif #endif
#if CONFIG_COMMAND_STACK_SIZE <= 0 #if CONFIG_COMMAND_STACK_SIZE <= 0

View file

@ -143,7 +143,7 @@ extern void init_drivers(void);
#ifdef CONFIG_TASK_DEBUG #ifdef CONFIG_TASK_DEBUG
extern int K_DebugHalt; extern int _k_debug_halt;
extern char *K_NodeNames[]; extern char *K_NodeNames[];
extern char **K_TaskNames[]; extern char **K_TaskNames[];
#ifndef LITE #ifndef LITE

View file

@ -313,9 +313,9 @@ void K_groupop(struct k_args *A)
#ifdef CONFIG_TASK_DEBUG #ifdef CONFIG_TASK_DEBUG
if (opt == GROUP_TASK_BLOCK) if (opt == GROUP_TASK_BLOCK)
K_DebugHalt = 1; _k_debug_halt = 1;
if (opt == GROUP_TASK_UNBLOCK) if (opt == GROUP_TASK_UNBLOCK)
K_DebugHalt = 0; _k_debug_halt = 0;
#endif #endif
for (i = 0, X = _k_task_list; i < _k_task_count; i++, X++) { for (i = 0, X = _k_task_list; i < _k_task_count; i++, X++) {

View file

@ -61,7 +61,7 @@ void KS_TaskSetSwitchCallBack(taskswitchcallbackfunc func)
void K_monitor_task(struct k_proc *X, uint32_t D) void K_monitor_task(struct k_proc *X, uint32_t D)
{ {
#ifdef CONFIG_TASK_DEBUG #ifdef CONFIG_TASK_DEBUG
if (!K_DebugHalt) if (!_k_debug_halt)
#endif #endif
{ {
K_monitor_wptr->time = timer_read(); K_monitor_wptr->time = timer_read();
@ -82,7 +82,7 @@ void K_monitor_task(struct k_proc *X, uint32_t D)
void K_monitor_args(struct k_args *A) void K_monitor_args(struct k_args *A)
{ {
#ifdef CONFIG_TASK_DEBUG #ifdef CONFIG_TASK_DEBUG
if (!K_DebugHalt) if (!_k_debug_halt)
#endif #endif
{ {
K_monitor_wptr->time = timer_read(); K_monitor_wptr->time = timer_read();

View file

@ -166,7 +166,7 @@ uint32_t __noinit K_DebugLowTime;
static inline int _TlDebugUpdate(int32_t ticks) static inline int _TlDebugUpdate(int32_t ticks)
{ {
K_DebugLowTime += ticks; K_DebugLowTime += ticks;
return !K_DebugHalt; return !_k_debug_halt;
} }
#else #else
#define _TlDebugUpdate(ticks) 1 #define _TlDebugUpdate(ticks) 1