sparc: Update cpu_init.c to use generic timer infrastructure
[oweals/u-boot.git] / arch / sparc / lib / interrupts.c
index b7c39936196f6b0650bf49113cf94cb25f0466e9..fab26c62dd6d12959917077ca9298498e2b13c18 100644 (file)
@@ -47,6 +47,13 @@ int disable_interrupts(void)
        return intLock();
 }
 
+int interrupt_is_enabled(void)
+{
+       if (get_pil() == 15)
+               return 0;
+       return 1;
+}
+
 int interrupt_init(void)
 {
        int ret;
@@ -74,11 +81,6 @@ void timer_interrupt(struct pt_regs *regs)
        timestamp++;
 }
 
-ulong get_timer(ulong base)
-{
-       return (timestamp - base);
-}
-
 void timer_interrupt_init(void)
 {
        int irq;