1
0
Fork 0
forked from nuttx/nuttx-update

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))
#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;
}

View file

@ -61,8 +61,8 @@ 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,
FAR struct tcb_s *tcb, bool locked);
static void notelog_preemption(FAR struct note_driver_s *drv,
FAR struct tcb_s *tcb, bool locked);
#endif
#ifdef CONFIG_SCHED_INSTRUMENTATION_CSECTION
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
#ifdef CONFIG_SCHED_INSTRUMENTATION_PREEMPTION
notelog_premption, /* premption */
notelog_preemption, /* preemption */
#endif
#ifdef CONFIG_SCHED_INSTRUMENTATION_CSECTION
notelog_csection, /* csection */
@ -255,8 +255,8 @@ 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,
FAR struct tcb_s *tcb, bool locked)
static void notelog_preemption(FAR struct note_driver_s *drv,
FAR struct tcb_s *tcb, bool locked)
{
#ifdef CONFIG_SMP
syslog(LOG_INFO, "CPU%d: Task %s TCB@%p preemption %s\n",

View file

@ -86,8 +86,8 @@ 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,
FAR struct tcb_s *tcb, bool locked);
static void notesnap_preemption(FAR struct note_driver_s *drv,
FAR struct tcb_s *tcb, bool locked);
#endif
#ifdef CONFIG_SCHED_INSTRUMENTATION_CSECTION
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
#ifdef CONFIG_SCHED_INSTRUMENTATION_PREEMPTION
notesnap_premption,
notesnap_preemption,
#endif
#ifdef CONFIG_SCHED_INSTRUMENTATION_CSECTION
notesnap_csection,
@ -302,8 +302,8 @@ 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,
FAR struct tcb_s *tcb, bool locked)
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 :
NOTE_PREEMPT_UNLOCK, 0);

View file

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

View file

@ -71,8 +71,8 @@ struct note_driver_ops_s
# endif
#endif
#ifdef CONFIG_SCHED_INSTRUMENTATION_PREEMPTION
CODE void (*premption)(FAR struct note_driver_s *drv,
FAR struct tcb_s *tcb, bool locked);
CODE void (*preemption)(FAR struct note_driver_s *drv,
FAR struct tcb_s *tcb, bool locked);
#endif
#ifdef CONFIG_SCHED_INSTRUMENTATION_CSECTION
CODE void (*csection)(FAR struct note_driver_s *drv,

View file

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

View file

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

View file

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

View file

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