You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2023/08/03 10:17:32 UTC
[nuttx] 05/05: assert: Remove unnecessary disable interrupts code
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit f2dc9402f695f8cb6f6023f6b1f1885d8137cac5
Author: zhangyuan21 <zh...@xiaomi.com>
AuthorDate: Mon Jun 19 14:54:10 2023 +0800
assert: Remove unnecessary disable interrupts code
Signed-off-by: zhangyuan21 <zh...@xiaomi.com>
---
sched/misc/assert.c | 10 ----------
1 file changed, 10 deletions(-)
diff --git a/sched/misc/assert.c b/sched/misc/assert.c
index 478f42beef..1cbe45aef7 100644
--- a/sched/misc/assert.c
+++ b/sched/misc/assert.c
@@ -672,16 +672,6 @@ void _assert(FAR const char *filename, int linenum,
#if CONFIG_BOARD_RESET_ON_ASSERT >= 1
board_reset(CONFIG_BOARD_ASSERT_RESET_VALUE);
#else
- /* Disable interrupts on this CPU */
-
- up_irq_save();
-
-# ifdef CONFIG_SMP
- /* Try (again) to stop activity on other CPUs */
-
- spin_trylock(&g_cpu_irqlock);
-# endif
-
for (; ; )
{
up_mdelay(250);