Rename TaskSwitchCallBack to _k_task_switch_callback
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: I18b2fb3250db6a7a6717b8329702e2b76a7492f9 Signed-off-by: Yonattan Louise <yonattan.a.louise.mendoza@intel.com>
This commit is contained in:
parent
eecb9466d5
commit
79dd1b48bd
1 changed files with 4 additions and 4 deletions
|
@ -49,13 +49,13 @@ static struct k_mrec *k_monitor_wptr = k_monitor_buff;
|
|||
static int k_monitor_nrec = 0;
|
||||
static int K_monitor_wind = 0;
|
||||
|
||||
taskswitchcallbackfunc TaskSwitchCallBack = NULL;
|
||||
taskswitchcallbackfunc _k_task_switch_callback = NULL;
|
||||
|
||||
extern const int _k_num_events;
|
||||
|
||||
void KS_TaskSetSwitchCallBack(taskswitchcallbackfunc func)
|
||||
{
|
||||
TaskSwitchCallBack = func;
|
||||
_k_task_switch_callback = func;
|
||||
}
|
||||
|
||||
void K_monitor_task(struct k_proc *X, uint32_t D)
|
||||
|
@ -75,8 +75,8 @@ void K_monitor_task(struct k_proc *X, uint32_t D)
|
|||
if (k_monitor_nrec < k_monitor_capacity)
|
||||
k_monitor_nrec++;
|
||||
}
|
||||
if ((TaskSwitchCallBack != NULL) && (D == 0))
|
||||
(TaskSwitchCallBack)(X->Ident, timer_read());
|
||||
if ((_k_task_switch_callback != NULL) && (D == 0))
|
||||
(_k_task_switch_callback)(X->Ident, timer_read());
|
||||
}
|
||||
|
||||
void K_monitor_args(struct k_args *A)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue