assert: Remove unnecessary disable interrupts code
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
This commit is contained in:
parent
3aa2aa4703
commit
f2dc9402f6
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user