sched: misc: Remove sched_lock in _assert()
Signed-off-by: hujun5 <hujun5@xiaomi.com>
This commit is contained in:
parent
72548951d3
commit
d0820acbbb
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user