Timer: Remove set_timer completely
[oweals/u-boot.git] / arch / avr32 / cpu / interrupts.c
index c6ea435c1d7dd8d3a777602f0ab8e3c86a4eb283..8406f912246114e77c804d13f41fd4e0c5c6470d 100644 (file)
@@ -77,22 +77,6 @@ unsigned long get_timer(unsigned long base)
        return (unsigned long)(now >> 32) - base;
 }
 
-void set_timer(unsigned long t)
-{
-       unsigned long long ticks = t;
-       unsigned long lo, hi, hi_new;
-
-       ticks = (ticks * get_tbclk()) / CONFIG_SYS_HZ;
-       hi = ticks >> 32;
-       lo = ticks & 0xffffffffUL;
-
-       do {
-               timer_overflow = hi;
-               sysreg_write(COUNT, lo);
-               hi_new = timer_overflow;
-       } while (hi_new != hi);
-}
-
 /*
  * For short delays only. It will overflow after a few seconds.
  */