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))
|
||||
#define note_cpu_resumed(drv, tcb) \
|
||||
((drv)->ops->cpu_resumed && ((drv)->ops->cpu_resumed(drv, tcb), true))
|
||||
#define note_premption(drv, tcb, locked) \
|
||||
((drv)->ops->premption && ((drv)->ops->premption(drv, tcb, locked), true))
|
||||
#define note_preemption(drv, tcb, locked) \
|
||||
((drv)->ops->preemption && ((drv)->ops->preemption(drv, tcb, locked), true))
|
||||
#define note_csection(drv, tcb, enter) \
|
||||
((drv)->ops->csection && ((drv)->ops->csection(drv, tcb, enter), true))
|
||||
#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 */
|
||||
|
||||
#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;
|
||||
FAR struct note_driver_s **driver;
|
||||
|
@ -1064,7 +1064,7 @@ void sched_note_premption(FAR struct tcb_s *tcb, bool locked)
|
|||
continue;
|
||||
}
|
||||
|
||||
if (note_premption(*driver, tcb, locked))
|
||||
if (note_preemption(*driver, tcb, locked))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
|
|
@ -61,7 +61,7 @@ static void notelog_cpu_resumed(FAR struct note_driver_s *drv,
|
|||
# endif
|
||||
#endif
|
||||
#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);
|
||||
#endif
|
||||
#ifdef CONFIG_SCHED_INSTRUMENTATION_CSECTION
|
||||
|
@ -103,7 +103,7 @@ static const struct note_driver_ops_s g_notelog_ops =
|
|||
# endif
|
||||
#endif
|
||||
#ifdef CONFIG_SCHED_INSTRUMENTATION_PREEMPTION
|
||||
notelog_premption, /* premption */
|
||||
notelog_preemption, /* preemption */
|
||||
#endif
|
||||
#ifdef CONFIG_SCHED_INSTRUMENTATION_CSECTION
|
||||
notelog_csection, /* csection */
|
||||
|
@ -255,7 +255,7 @@ static void notelog_cpu_resumed(FAR struct note_driver_s *drv,
|
|||
#endif
|
||||
|
||||
#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)
|
||||
{
|
||||
#ifdef CONFIG_SMP
|
||||
|
|
|
@ -86,7 +86,7 @@ static void notesnap_cpu_resumed(FAR struct note_driver_s *drv,
|
|||
# endif
|
||||
#endif
|
||||
#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);
|
||||
#endif
|
||||
#ifdef CONFIG_SCHED_INSTRUMENTATION_CSECTION
|
||||
|
@ -133,7 +133,7 @@ static const struct note_driver_ops_s g_notesnap_ops =
|
|||
# endif
|
||||
#endif
|
||||
#ifdef CONFIG_SCHED_INSTRUMENTATION_PREEMPTION
|
||||
notesnap_premption,
|
||||
notesnap_preemption,
|
||||
#endif
|
||||
#ifdef CONFIG_SCHED_INSTRUMENTATION_CSECTION
|
||||
notesnap_csection,
|
||||
|
@ -302,7 +302,7 @@ static void notesnap_cpu_resumed(FAR struct note_driver_s *drv,
|
|||
#endif
|
||||
|
||||
#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)
|
||||
{
|
||||
notesnap_common(drv, tcb, locked ? NOTE_PREEMPT_LOCK :
|
||||
|
|
|
@ -112,7 +112,7 @@ static const struct note_driver_ops_s g_note_sysview_ops =
|
|||
# endif
|
||||
#endif
|
||||
#ifdef CONFIG_SCHED_INSTRUMENTATION_PREEMPTION
|
||||
NULL, /* premption */
|
||||
NULL, /* preemption */
|
||||
#endif
|
||||
#ifdef CONFIG_SCHED_INSTRUMENTATION_CSECTION
|
||||
NULL, /* csection */
|
||||
|
|
|
@ -71,7 +71,7 @@ struct note_driver_ops_s
|
|||
# endif
|
||||
#endif
|
||||
#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);
|
||||
#endif
|
||||
#ifdef CONFIG_SCHED_INSTRUMENTATION_CSECTION
|
||||
|
|
|
@ -630,9 +630,9 @@ void sched_note_cpu_resumed(FAR struct tcb_s *tcb);
|
|||
#endif
|
||||
|
||||
#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
|
||||
# define sched_note_premption(t,l)
|
||||
# define sched_note_preemption(t,l)
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_SCHED_INSTRUMENTATION_CSECTION
|
||||
|
|
|
@ -1252,7 +1252,7 @@ config SCHED_INSTRUMENTATION_PREEMPTION
|
|||
Enables additional hooks for changes to pre-emption state. Board-
|
||||
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
|
||||
bool "Critical section monitor hooks"
|
||||
|
|
|
@ -110,7 +110,7 @@ int sched_lock(void)
|
|||
nxsched_critmon_preemption(rtcb, true, return_address(0));
|
||||
#endif
|
||||
#ifdef CONFIG_SCHED_INSTRUMENTATION_PREEMPTION
|
||||
sched_note_premption(rtcb, true);
|
||||
sched_note_preemption(rtcb, true);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -164,7 +164,7 @@ int sched_lock(void)
|
|||
nxsched_critmon_preemption(rtcb, true, return_address(0));
|
||||
#endif
|
||||
#ifdef CONFIG_SCHED_INSTRUMENTATION_PREEMPTION
|
||||
sched_note_premption(rtcb, true);
|
||||
sched_note_preemption(rtcb, true);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
|
|
@ -95,7 +95,7 @@ int sched_unlock(void)
|
|||
nxsched_critmon_preemption(rtcb, false, return_address(0));
|
||||
#endif
|
||||
#ifdef CONFIG_SCHED_INSTRUMENTATION_PREEMPTION
|
||||
sched_note_premption(rtcb, false);
|
||||
sched_note_preemption(rtcb, false);
|
||||
#endif
|
||||
|
||||
/* 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));
|
||||
#endif
|
||||
#ifdef CONFIG_SCHED_INSTRUMENTATION_PREEMPTION
|
||||
sched_note_premption(rtcb, false);
|
||||
sched_note_preemption(rtcb, false);
|
||||
#endif
|
||||
|
||||
/* Release any ready-to-run tasks that have collected in
|
||||
|
|
Loading…
Reference in a new issue