Rename K_monitor_mask to _k_monitor_mask

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: I6ac0943b06e645598712c56565904f4943cc12bd
Signed-off-by: Yonattan Louise <yonattan.a.louise.mendoza@intel.com>
This commit is contained in:
Yonattan Louise 2015-04-27 10:28:38 -05:00 committed by Anas Nashif
parent b1b4747e8f
commit 0a5d10669d
4 changed files with 7 additions and 7 deletions

View file

@ -175,7 +175,7 @@ extern void K_monitor_task(struct k_proc *, uint32_t d2);
extern void K_monitor_args(struct k_args *);
extern void K_monitor_read(struct k_args *);
extern const int K_monitor_mask;
extern const int _k_monitor_mask;
/* task level monitor bits */

View file

@ -86,7 +86,7 @@ void reset_state_bit(struct k_proc *X, /* ptr to task */
#ifdef CONFIG_TASK_MONITOR
f_new ^= f_old;
if ((K_monitor_mask & MON_STATE) && (f_new)) {
if ((_k_monitor_mask & MON_STATE) && (f_new)) {
/*
* Task monitoring is enabled and the new state bits are
* different than the old state bits.
@ -172,7 +172,7 @@ void set_state_bit(
#ifdef CONFIG_TASK_MONITOR
new_state_bits ^= old_state_bits;
if ((K_monitor_mask & MON_STATE) && (new_state_bits)) {
if ((_k_monitor_mask & MON_STATE) && (new_state_bits)) {
/*
* Task monitoring is enabled and the new state bits are
* different than the old state bits.

View file

@ -43,7 +43,7 @@
static struct k_mrec __noinit k_monitor_buff[CONFIG_TASK_MONITOR_CAPACITY];
static const int k_monitor_capacity = CONFIG_TASK_MONITOR_CAPACITY;
const int K_monitor_mask = CONFIG_TASK_MONITOR_MASK;
const int _k_monitor_mask = CONFIG_TASK_MONITOR_MASK;
static struct k_mrec *K_monitor_wptr = k_monitor_buff;
static int K_monitor_nrec = 0;

View file

@ -93,14 +93,14 @@ FUNC_NORETURN void K_swapper(int parameter1, /* not used */
event = (kevent_t)(pArgs);
if (event < (kevent_t)_k_num_events) {
#ifdef CONFIG_TASK_MONITOR
if (K_monitor_mask & MON_EVENT) {
if (_k_monitor_mask & MON_EVENT) {
K_monitor_args(pArgs);
}
#endif
K_sigevent(event);
} else {
#ifdef CONFIG_TASK_MONITOR
if (K_monitor_mask & MON_KSERV) {
if (_k_monitor_mask & MON_KSERV) {
K_monitor_args(pArgs);
}
#endif
@ -162,7 +162,7 @@ FUNC_NORETURN void K_swapper(int parameter1, /* not used */
_NanoKernel.task = (tCCS *)pNextTask->workspace;
#ifdef CONFIG_TASK_MONITOR
if (K_monitor_mask & MON_TSWAP) {
if (_k_monitor_mask & MON_TSWAP) {
K_monitor_task(_k_current_task, 0);
}
#endif