From d0820acbbba213dbb7e4d1b7f38b6564d265660e Mon Sep 17 00:00:00 2001 From: hujun5 Date: Thu, 18 Apr 2024 21:23:36 +0800 Subject: [PATCH] sched: misc: Remove sched_lock in _assert() Signed-off-by: hujun5 --- sched/misc/assert.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sched/misc/assert.c b/sched/misc/assert.c index 0079014782..343a042f76 100644 --- a/sched/misc/assert.c +++ b/sched/misc/assert.c @@ -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); }