diff options
Diffstat (limited to 'arch/avr32/cpu/interrupts.c')
| -rw-r--r-- | arch/avr32/cpu/interrupts.c | 23 | 
1 files changed, 0 insertions, 23 deletions
| diff --git a/arch/avr32/cpu/interrupts.c b/arch/avr32/cpu/interrupts.c index c6ea435c1..6681e13b9 100644 --- a/arch/avr32/cpu/interrupts.c +++ b/arch/avr32/cpu/interrupts.c @@ -62,13 +62,6 @@ unsigned long long get_ticks(void)  	return ((unsigned long long)hi_now << 32) | lo;  } -void reset_timer(void) -{ -	sysreg_write(COUNT, 0); -	cpu_sync_pipeline();	/* process any pending interrupts */ -	timer_overflow = 0; -} -  unsigned long get_timer(unsigned long base)  {  	u64 now = get_ticks(); @@ -77,22 +70,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.   */ |