Skip to content

Commit 3fffa23

Browse files
vitkyrkaJesper Nilsson
authored andcommitted
CRISv32: annotate irq enable in idle loop
Use a call to local_irq_enable() instead of incline asm so that the irqsoff latency tracer knows that interrupts are enabled here. Signed-off-by: Rabin Vincent <[email protected]> Signed-off-by: Jesper Nilsson <[email protected]>
1 parent 444e0c2 commit 3fffa23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/cris/arch-v32/kernel/process.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ extern void stop_watchdog(void);
2323
/* We use this if we don't have any better idle routine. */
2424
void default_idle(void)
2525
{
26+
local_irq_enable();
2627
/* Halt until exception. */
27-
__asm__ volatile("ei \n\t"
28-
"halt ");
28+
__asm__ volatile("halt");
2929
}
3030

3131
/*

0 commit comments

Comments
 (0)