Renaming GROUP_TASK_ macros to TASK_GROUP_
Updating micro kernel functions to follow a consistent naming convention. Part of that process is the removal of camelCase naming conventions for the preferred_underscore_method. This specific change maps the macro to the function naming used by the OS. Change accomplished with the following script: #!/bin/bash echo "Searching for ${1} to replace with ${2}" echo "Checking C, CPP, H, HPP, and s files..." find . -type f \( -iname \*.[ch] -o -iname \*.[ch]pp -o -iname \*.s \) \ -not \( -path host/src/genIdt -prune \) \ -not \( -path host/src/gen_tables -prune \) \ -print | xargs sed -i "s/"${1}"/"${2}"/g" echo "Checking KCONF, LST, and PY files..." find . -type f \( -iname \*.lst -o -iname \*.kconf -o -iname \*.py \) \ -not \( -path host/src/genIdt -prune \) \ -not \( -path host/src/gen_tables -prune \) \ -print | xargs sed -i "s/"${1}"/"${2}"/g" Change-Id: If41030c6b9f0417356807b0cc6f4c287378e0c17 Signed-off-by: Dan Kalowsky <daniel.kalowsky@intel.com>
This commit is contained in:
parent
272064cd19
commit
9e8c06563e
3 changed files with 18 additions and 18 deletions
|
@ -308,31 +308,31 @@ void _k_task_group_op(struct k_args *A)
|
|||
struct k_proc *X;
|
||||
|
||||
#ifdef CONFIG_TASK_DEBUG
|
||||
if (opt == GROUP_TASK_BLOCK)
|
||||
if (opt == TASK_GROUP_BLOCK)
|
||||
_k_debug_halt = 1;
|
||||
if (opt == GROUP_TASK_UNBLOCK)
|
||||
if (opt == TASK_GROUP_UNBLOCK)
|
||||
_k_debug_halt = 0;
|
||||
#endif
|
||||
|
||||
for (i = 0, X = _k_task_list; i < _k_task_count; i++, X++) {
|
||||
if (X->Group & grp) {
|
||||
switch (opt) {
|
||||
case GROUP_TASK_START:
|
||||
case TASK_GROUP_START:
|
||||
start_task(X, X->fstart);
|
||||
break;
|
||||
case GROUP_TASK_ABORT:
|
||||
case TASK_GROUP_ABORT:
|
||||
abort_task(X);
|
||||
break;
|
||||
case GROUP_TASK_SUSPEND:
|
||||
case TASK_GROUP_SUSPEND:
|
||||
set_state_bit(X, TF_SUSP);
|
||||
break;
|
||||
case GROUP_TASK_RESUME:
|
||||
case TASK_GROUP_RESUME:
|
||||
reset_state_bit(X, TF_SUSP);
|
||||
break;
|
||||
case GROUP_TASK_BLOCK:
|
||||
case TASK_GROUP_BLOCK:
|
||||
set_state_bit(X, TF_BLCK);
|
||||
break;
|
||||
case GROUP_TASK_UNBLOCK:
|
||||
case TASK_GROUP_UNBLOCK:
|
||||
reset_state_bit(X, TF_BLCK);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue