Rename K_PrioBitMap to _k_task_priority_bitmap

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

View file

@ -81,7 +81,7 @@ void reset_state_bit(struct k_proc *X, /* ptr to task */
X->Forw = NULL;
H->Tail->Forw = X;
H->Tail = X;
K_PrioBitMap[X->Prio >> 5] |= (1 << (X->Prio & 0x1F));
_k_task_priority_bitmap[X->Prio >> 5] |= (1 << (X->Prio & 0x1F));
}
#ifdef CONFIG_TASK_MONITOR
@ -166,7 +166,7 @@ void set_state_bit(
* runnable, then clear that bit in the global priority bit map.
*/
if (task_queue->Head == NULL) {
K_PrioBitMap[task_ptr->Prio >> 5] &= ~(1 << (task_ptr->Prio & 0x1F));
_k_task_priority_bitmap[task_ptr->Prio >> 5] &= ~(1 << (task_ptr->Prio & 0x1F));
}
}