sched: misc: Remove sched_lock in _assert()

Signed-off-by: hujun5 <hujun5@xiaomi.com>
This commit is contained in:
hujun5 2024-04-18 21:23:36 +08:00 committed by Masayuki Ishikawa
parent 72548951d3
commit d0820acbbb

View File

@ -536,8 +536,6 @@ void _assert(FAR const char *filename, int linenum,
flags = enter_critical_section();
sched_lock();
/* try to save current context if regs is null */
if (regs == NULL)
@ -672,7 +670,5 @@ void _assert(FAR const char *filename, int linenum,
#endif
}
sched_unlock();
leave_critical_section(flags);
}