spelling: fix spelling typo premption -> preemption
Signed-off-by: chao an <anchao@lixiang.com>
This commit is contained in:
parent
47e33c6433
commit
6ffb001fdf
9 changed files with 24 additions and 24 deletions
|
@ -79,8 +79,8 @@
|
||||||
((drv)->ops->cpu_resume && ((drv)->ops->cpu_resume(drv, tcb, cpu), true))
|
((drv)->ops->cpu_resume && ((drv)->ops->cpu_resume(drv, tcb, cpu), true))
|
||||||
#define note_cpu_resumed(drv, tcb) \
|
#define note_cpu_resumed(drv, tcb) \
|
||||||
((drv)->ops->cpu_resumed && ((drv)->ops->cpu_resumed(drv, tcb), true))
|
((drv)->ops->cpu_resumed && ((drv)->ops->cpu_resumed(drv, tcb), true))
|
||||||
#define note_premption(drv, tcb, locked) \
|
#define note_preemption(drv, tcb, locked) \
|
||||||
((drv)->ops->premption && ((drv)->ops->premption(drv, tcb, locked), true))
|
((drv)->ops->preemption && ((drv)->ops->preemption(drv, tcb, locked), true))
|
||||||
#define note_csection(drv, tcb, enter) \
|
#define note_csection(drv, tcb, enter) \
|
||||||
((drv)->ops->csection && ((drv)->ops->csection(drv, tcb, enter), true))
|
((drv)->ops->csection && ((drv)->ops->csection(drv, tcb, enter), true))
|
||||||
#define note_spinlock(drv, tcb, spinlock, type) \
|
#define note_spinlock(drv, tcb, spinlock, type) \
|
||||||
|
@ -1051,7 +1051,7 @@ void sched_note_cpu_resumed(FAR struct tcb_s *tcb)
|
||||||
#endif /* CONFIG_SCHED_INSTRUMENTATION_SWITCH */
|
#endif /* CONFIG_SCHED_INSTRUMENTATION_SWITCH */
|
||||||
|
|
||||||
#ifdef CONFIG_SCHED_INSTRUMENTATION_PREEMPTION
|
#ifdef CONFIG_SCHED_INSTRUMENTATION_PREEMPTION
|
||||||
void sched_note_premption(FAR struct tcb_s *tcb, bool locked)
|
void sched_note_preemption(FAR struct tcb_s *tcb, bool locked)
|
||||||
{
|
{
|
||||||
struct note_preempt_s note;
|
struct note_preempt_s note;
|
||||||
FAR struct note_driver_s **driver;
|
FAR struct note_driver_s **driver;
|
||||||
|
@ -1064,7 +1064,7 @@ void sched_note_premption(FAR struct tcb_s *tcb, bool locked)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (note_premption(*driver, tcb, locked))
|
if (note_preemption(*driver, tcb, locked))
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
|
@ -61,8 +61,8 @@ static void notelog_cpu_resumed(FAR struct note_driver_s *drv,
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_SCHED_INSTRUMENTATION_PREEMPTION
|
#ifdef CONFIG_SCHED_INSTRUMENTATION_PREEMPTION
|
||||||
static void notelog_premption(FAR struct note_driver_s *drv,
|
static void notelog_preemption(FAR struct note_driver_s *drv,
|
||||||
FAR struct tcb_s *tcb, bool locked);
|
FAR struct tcb_s *tcb, bool locked);
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_SCHED_INSTRUMENTATION_CSECTION
|
#ifdef CONFIG_SCHED_INSTRUMENTATION_CSECTION
|
||||||
static void notelog_csection(FAR struct note_driver_s *drv,
|
static void notelog_csection(FAR struct note_driver_s *drv,
|
||||||
|
@ -103,7 +103,7 @@ static const struct note_driver_ops_s g_notelog_ops =
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_SCHED_INSTRUMENTATION_PREEMPTION
|
#ifdef CONFIG_SCHED_INSTRUMENTATION_PREEMPTION
|
||||||
notelog_premption, /* premption */
|
notelog_preemption, /* preemption */
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_SCHED_INSTRUMENTATION_CSECTION
|
#ifdef CONFIG_SCHED_INSTRUMENTATION_CSECTION
|
||||||
notelog_csection, /* csection */
|
notelog_csection, /* csection */
|
||||||
|
@ -255,8 +255,8 @@ static void notelog_cpu_resumed(FAR struct note_driver_s *drv,
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_SCHED_INSTRUMENTATION_PREEMPTION
|
#ifdef CONFIG_SCHED_INSTRUMENTATION_PREEMPTION
|
||||||
static void notelog_premption(FAR struct note_driver_s *drv,
|
static void notelog_preemption(FAR struct note_driver_s *drv,
|
||||||
FAR struct tcb_s *tcb, bool locked)
|
FAR struct tcb_s *tcb, bool locked)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_SMP
|
#ifdef CONFIG_SMP
|
||||||
syslog(LOG_INFO, "CPU%d: Task %s TCB@%p preemption %s\n",
|
syslog(LOG_INFO, "CPU%d: Task %s TCB@%p preemption %s\n",
|
||||||
|
|
|
@ -86,8 +86,8 @@ static void notesnap_cpu_resumed(FAR struct note_driver_s *drv,
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_SCHED_INSTRUMENTATION_PREEMPTION
|
#ifdef CONFIG_SCHED_INSTRUMENTATION_PREEMPTION
|
||||||
static void notesnap_premption(FAR struct note_driver_s *drv,
|
static void notesnap_preemption(FAR struct note_driver_s *drv,
|
||||||
FAR struct tcb_s *tcb, bool locked);
|
FAR struct tcb_s *tcb, bool locked);
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_SCHED_INSTRUMENTATION_CSECTION
|
#ifdef CONFIG_SCHED_INSTRUMENTATION_CSECTION
|
||||||
static void notesnap_csection(FAR struct note_driver_s *drv,
|
static void notesnap_csection(FAR struct note_driver_s *drv,
|
||||||
|
@ -133,7 +133,7 @@ static const struct note_driver_ops_s g_notesnap_ops =
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_SCHED_INSTRUMENTATION_PREEMPTION
|
#ifdef CONFIG_SCHED_INSTRUMENTATION_PREEMPTION
|
||||||
notesnap_premption,
|
notesnap_preemption,
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_SCHED_INSTRUMENTATION_CSECTION
|
#ifdef CONFIG_SCHED_INSTRUMENTATION_CSECTION
|
||||||
notesnap_csection,
|
notesnap_csection,
|
||||||
|
@ -302,8 +302,8 @@ static void notesnap_cpu_resumed(FAR struct note_driver_s *drv,
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_SCHED_INSTRUMENTATION_PREEMPTION
|
#ifdef CONFIG_SCHED_INSTRUMENTATION_PREEMPTION
|
||||||
static void notesnap_premption(FAR struct note_driver_s *drv,
|
static void notesnap_preemption(FAR struct note_driver_s *drv,
|
||||||
FAR struct tcb_s *tcb, bool locked)
|
FAR struct tcb_s *tcb, bool locked)
|
||||||
{
|
{
|
||||||
notesnap_common(drv, tcb, locked ? NOTE_PREEMPT_LOCK :
|
notesnap_common(drv, tcb, locked ? NOTE_PREEMPT_LOCK :
|
||||||
NOTE_PREEMPT_UNLOCK, 0);
|
NOTE_PREEMPT_UNLOCK, 0);
|
||||||
|
|
|
@ -112,7 +112,7 @@ static const struct note_driver_ops_s g_note_sysview_ops =
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_SCHED_INSTRUMENTATION_PREEMPTION
|
#ifdef CONFIG_SCHED_INSTRUMENTATION_PREEMPTION
|
||||||
NULL, /* premption */
|
NULL, /* preemption */
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_SCHED_INSTRUMENTATION_CSECTION
|
#ifdef CONFIG_SCHED_INSTRUMENTATION_CSECTION
|
||||||
NULL, /* csection */
|
NULL, /* csection */
|
||||||
|
|
|
@ -71,8 +71,8 @@ struct note_driver_ops_s
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_SCHED_INSTRUMENTATION_PREEMPTION
|
#ifdef CONFIG_SCHED_INSTRUMENTATION_PREEMPTION
|
||||||
CODE void (*premption)(FAR struct note_driver_s *drv,
|
CODE void (*preemption)(FAR struct note_driver_s *drv,
|
||||||
FAR struct tcb_s *tcb, bool locked);
|
FAR struct tcb_s *tcb, bool locked);
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_SCHED_INSTRUMENTATION_CSECTION
|
#ifdef CONFIG_SCHED_INSTRUMENTATION_CSECTION
|
||||||
CODE void (*csection)(FAR struct note_driver_s *drv,
|
CODE void (*csection)(FAR struct note_driver_s *drv,
|
||||||
|
|
|
@ -630,9 +630,9 @@ void sched_note_cpu_resumed(FAR struct tcb_s *tcb);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_SCHED_INSTRUMENTATION_PREEMPTION
|
#ifdef CONFIG_SCHED_INSTRUMENTATION_PREEMPTION
|
||||||
void sched_note_premption(FAR struct tcb_s *tcb, bool locked);
|
void sched_note_preemption(FAR struct tcb_s *tcb, bool locked);
|
||||||
#else
|
#else
|
||||||
# define sched_note_premption(t,l)
|
# define sched_note_preemption(t,l)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_SCHED_INSTRUMENTATION_CSECTION
|
#ifdef CONFIG_SCHED_INSTRUMENTATION_CSECTION
|
||||||
|
|
|
@ -1252,7 +1252,7 @@ config SCHED_INSTRUMENTATION_PREEMPTION
|
||||||
Enables additional hooks for changes to pre-emption state. Board-
|
Enables additional hooks for changes to pre-emption state. Board-
|
||||||
specific logic must provide this additional logic.
|
specific logic must provide this additional logic.
|
||||||
|
|
||||||
void sched_note_premption(FAR struct tcb_s *tcb, bool state);
|
void sched_note_preemption(FAR struct tcb_s *tcb, bool state);
|
||||||
|
|
||||||
config SCHED_INSTRUMENTATION_CSECTION
|
config SCHED_INSTRUMENTATION_CSECTION
|
||||||
bool "Critical section monitor hooks"
|
bool "Critical section monitor hooks"
|
||||||
|
|
|
@ -110,7 +110,7 @@ int sched_lock(void)
|
||||||
nxsched_critmon_preemption(rtcb, true, return_address(0));
|
nxsched_critmon_preemption(rtcb, true, return_address(0));
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_SCHED_INSTRUMENTATION_PREEMPTION
|
#ifdef CONFIG_SCHED_INSTRUMENTATION_PREEMPTION
|
||||||
sched_note_premption(rtcb, true);
|
sched_note_preemption(rtcb, true);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -164,7 +164,7 @@ int sched_lock(void)
|
||||||
nxsched_critmon_preemption(rtcb, true, return_address(0));
|
nxsched_critmon_preemption(rtcb, true, return_address(0));
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_SCHED_INSTRUMENTATION_PREEMPTION
|
#ifdef CONFIG_SCHED_INSTRUMENTATION_PREEMPTION
|
||||||
sched_note_premption(rtcb, true);
|
sched_note_preemption(rtcb, true);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -95,7 +95,7 @@ int sched_unlock(void)
|
||||||
nxsched_critmon_preemption(rtcb, false, return_address(0));
|
nxsched_critmon_preemption(rtcb, false, return_address(0));
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_SCHED_INSTRUMENTATION_PREEMPTION
|
#ifdef CONFIG_SCHED_INSTRUMENTATION_PREEMPTION
|
||||||
sched_note_premption(rtcb, false);
|
sched_note_preemption(rtcb, false);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Release any ready-to-run tasks that have collected in
|
/* Release any ready-to-run tasks that have collected in
|
||||||
|
@ -220,7 +220,7 @@ int sched_unlock(void)
|
||||||
nxsched_critmon_preemption(rtcb, false, return_address(0));
|
nxsched_critmon_preemption(rtcb, false, return_address(0));
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_SCHED_INSTRUMENTATION_PREEMPTION
|
#ifdef CONFIG_SCHED_INSTRUMENTATION_PREEMPTION
|
||||||
sched_note_premption(rtcb, false);
|
sched_note_preemption(rtcb, false);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Release any ready-to-run tasks that have collected in
|
/* Release any ready-to-run tasks that have collected in
|
||||||
|
|
Loading…
Reference in a new issue