mirror of
https://github.com/apache/nuttx.git
synced 2026-05-22 05:42:05 +08:00
sched: misc: Remove sched_lock in _assert()
Signed-off-by: hujun5 <hujun5@xiaomi.com>
This commit is contained in:
committed by
Masayuki Ishikawa
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user