From ba77d2b708310b73247d5c79b35483ec53b9350f Mon Sep 17 00:00:00 2001 From: yushuailong Date: Sun, 6 Sep 2026 22:30:19 +0800 Subject: [PATCH] sched/critmonitor: Fix the preemption start field name. The premp_start member was renamed to preemp_start, but the old name was reintroduced when the critical monitor switch paths were merged. Use the current struct tcb_s field name so configurations with preemption monitoring enabled build successfully. Assisted-by: OpenAI Codex Signed-off-by: yushuailong --- sched/sched/sched_critmonitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sched/sched/sched_critmonitor.c b/sched/sched/sched_critmonitor.c index 2e5ad7af3be..1de9146250a 100644 --- a/sched/sched/sched_critmonitor.c +++ b/sched/sched/sched_critmonitor.c @@ -420,7 +420,7 @@ void nxsched_switch_critmon(FAR struct tcb_s *from, FAR struct tcb_s *to) if (to->lockcount > 0) { - to->premp_start = current; + to->preemp_start = current; } #endif /* CONFIG_SCHED_CRITMONITOR_MAXTIME_PREEMPTION */