summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2011-08-07 19:28:02 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2011-08-07 19:30:08 +0200
commit20fbf2a0e2c98108b5830558c70382e8d3c65303 (patch)
tree33896a2a3ee3b5727b9cd0a006137e69d05778cc
parent613e7ffd4eb525315c71b3de7412a020bd06ea82 (diff)
downloadbarebox-20fbf2a0e2c98108b5830558c70382e8d3c65303.tar.gz
barebox-20fbf2a0e2c98108b5830558c70382e8d3c65303.tar.xz
ARM: remove unused irq enable/disable functions
We do not have irq support in barebox, so remove the unused interrupt functions. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--arch/arm/cpu/interrupts.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/arch/arm/cpu/interrupts.c b/arch/arm/cpu/interrupts.c
index a405fae9bd..71744ac1e3 100644
--- a/arch/arm/cpu/interrupts.c
+++ b/arch/arm/cpu/interrupts.c
@@ -29,37 +29,6 @@
#include <asm/ptrace.h>
#include <asm/unwind.h>
-#ifdef CONFIG_USE_IRQ
-/* enable IRQ interrupts */
-void enable_interrupts (void)
-{
- unsigned long temp;
- __asm__ __volatile__("mrs %0, cpsr\n"
- "bic %0, %0, #0x80\n"
- "msr cpsr_c, %0"
- : "=r" (temp)
- :
- : "memory");
-}
-
-
-/*
- * disable IRQ/FIQ interrupts
- * returns true if interrupts had been enabled before we disabled them
- */
-int disable_interrupts (void)
-{
- unsigned long old,temp;
- __asm__ __volatile__("mrs %0, cpsr\n"
- "orr %1, %0, #0xc0\n"
- "msr cpsr_c, %1"
- : "=r" (old), "=r" (temp)
- :
- : "memory");
- return(old & 0x80) == 0;
-}
-#endif
-
/**
* FIXME
*/