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 <yyyusl@qq.com>
This commit is contained in:
yushuailong
2026-09-07 21:06:53 +08:00
committed by Xiang Xiao
parent 4d14db131c
commit ba77d2b708
+1 -1
View File
@@ -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 */