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
commit 0a5d10669d
4 changed files with 7 additions and 7 deletions

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.