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