Skip to content

Commit 6f2b120

Browse files
committed
sim: remove the critical_section in IRQ handler
To fix hang on configure sim:smp when (CONFIG_SMP_NCPUS=1) Signed-off-by: ligd <liguiding1@xiaomi.com>
1 parent 74ce3b8 commit 6f2b120

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

arch/sim/src/sim/sim_oneshot.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -180,18 +180,13 @@ static void sim_update_hosttimer(void)
180180
static void sim_timer_update_internal(void)
181181
{
182182
sq_entry_t *entry;
183-
irqstate_t flags;
184-
185-
flags = enter_critical_section();
186183

187184
for (entry = sq_peek(&g_oneshot_list); entry; entry = sq_next(entry))
188185
{
189186
sim_process_tick(entry);
190187
}
191188

192189
sim_update_hosttimer();
193-
194-
leave_critical_section(flags);
195190
}
196191

197192
/****************************************************************************

0 commit comments

Comments
 (0)