diff options
author | Rabin Vincent <rabin@rab.in> | 2015-02-20 12:57:37 -0500 |
---|---|---|
committer | Jesper Nilsson <jespern@axis.com> | 2015-09-04 18:56:49 -0400 |
commit | 3fffa23ee0a348aef1b597b67626d4724667143b (patch) | |
tree | edcabbe8a7c5899e3b8d14b44a58a8e55d4a6fa0 /arch/cris/arch-v32 | |
parent | 444e0c2881bcc70db6833d9c653c6ced36813d3b (diff) |
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 <rabin@rab.in>
Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
Diffstat (limited to 'arch/cris/arch-v32')
-rw-r--r-- | arch/cris/arch-v32/kernel/process.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/cris/arch-v32/kernel/process.c b/arch/cris/arch-v32/kernel/process.c index cebd32e2a8fb..c7ce784a393c 100644 --- a/arch/cris/arch-v32/kernel/process.c +++ b/arch/cris/arch-v32/kernel/process.c | |||
@@ -23,9 +23,9 @@ extern void stop_watchdog(void); | |||
23 | /* We use this if we don't have any better idle routine. */ | 23 | /* We use this if we don't have any better idle routine. */ |
24 | void default_idle(void) | 24 | void default_idle(void) |
25 | { | 25 | { |
26 | local_irq_enable(); | ||
26 | /* Halt until exception. */ | 27 | /* Halt until exception. */ |
27 | __asm__ volatile("ei \n\t" | 28 | __asm__ volatile("halt"); |
28 | "halt "); | ||
29 | } | 29 | } |
30 | 30 | ||
31 | /* | 31 | /* |