spelling: fix spelling typo premption -> preemption

Signed-off-by: chao an <anchao@lixiang.com>
This commit is contained in:
chao an 2024-11-25 17:18:07 +08:00 committed by Xiang Xiao
parent 47e33c6433
commit 6ffb001fdf
9 changed files with 24 additions and 24 deletions

View file

@ -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;
} }

View file

@ -61,7 +61,7 @@ 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
@ -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,7 +255,7 @@ 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

View file

@ -86,7 +86,7 @@ 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
@ -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,7 +302,7 @@ 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 :

View file

@ -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 */

View file

@ -71,7 +71,7 @@ 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

View file

@ -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

View file

@ -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"

View file

@ -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
} }
} }

View file

@ -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