diff options
| author | Graeme Russ <graeme.russ@gmail.com> | 2011-07-15 02:18:12 +0000 | 
|---|---|---|
| committer | Wolfgang Denk <wd@denx.de> | 2011-07-26 14:52:17 +0200 | 
| commit | 5c8404aff16c2a207a11e1af5843e1009bf9fb01 (patch) | |
| tree | 65d07a585508bf1dab4ddabf2768e44fb43d6f1f /arch/sh/lib/time.c | |
| parent | dcac25a05e2bdf35be1e13c432d238007d1c3b9f (diff) | |
| download | olio-uboot-2014.01-5c8404aff16c2a207a11e1af5843e1009bf9fb01.tar.xz olio-uboot-2014.01-5c8404aff16c2a207a11e1af5843e1009bf9fb01.zip | |
Timer: Remove set_timer completely
Diffstat (limited to 'arch/sh/lib/time.c')
| -rw-r--r-- | arch/sh/lib/time.c | 7 | 
1 files changed, 1 insertions, 6 deletions
| diff --git a/arch/sh/lib/time.c b/arch/sh/lib/time.c index bc1656f73..c4bfc8638 100644 --- a/arch/sh/lib/time.c +++ b/arch/sh/lib/time.c @@ -139,15 +139,10 @@ unsigned long get_timer (unsigned long base)  	return tick_to_time(get_ticks()) - base;  } -void set_timer (unsigned long t) -{ -	writel((0 - t), TCNT0); -} -  void reset_timer (void)  {  	tmu_timer_stop(0); -	set_timer (0); +	writel(0, TCNT0);  	tmu_timer_start(0);  } |