mirror of
https://github.com/apache/nuttx.git
synced 2026-09-23 16:22:23 +08:00
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:
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user