Skip to content

Commit

Permalink
sched: misc: Remove sched_lock in _assert()
Browse files Browse the repository at this point in the history
Change-Id: I8731daeab0030a19159ede94377b86b724a62484
Signed-off-by: hujun5 <hujun5@xiaomi.com>
  • Loading branch information
hujun260 committed Apr 18, 2024
1 parent 1bf37c3 commit 19dde53
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions sched/misc/assert.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -672,7 +670,5 @@ void _assert(FAR const char *filename, int linenum,
#endif
}

sched_unlock();

leave_critical_section(flags);
}

0 comments on commit 19dde53

Please sign in to comment.