diff options
author | Kevin Hilman <khilman@mvista.com> | 2007-11-13 02:24:04 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2008-04-14 12:57:13 -0400 |
commit | dd89dd98cb9ae28f9e4c4d2c08be427a1f941c54 (patch) | |
tree | 95c68cff45f6673f806bfb5745aab4905c3c3a86 /arch/arm/mach-omap1 | |
parent | caa97963a5d9042af15728bcd22ee5a8900dc0e9 (diff) |
ARM: OMAP: TimerMPU: Remove MPU-timer based sched_clock()
Remove MPU-timer based sched_clock() in favor of the common one based
on 32k sync timer which works across all OMAP1/2/3 platforms.
Using 32k based one also gives a valid sched_clock() very early in the
boot process.
Signed-off-by: Kevin Hilman <khilman@mvista.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap1')
-rw-r--r-- | arch/arm/mach-omap1/time.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/arch/arm/mach-omap1/time.c b/arch/arm/mach-omap1/time.c index f6cf2b7e52be..5d2b270935a2 100644 --- a/arch/arm/mach-omap1/time.c +++ b/arch/arm/mach-omap1/time.c | |||
@@ -227,22 +227,6 @@ static void __init omap_init_clocksource(unsigned long rate) | |||
227 | printk(err, clocksource_mpu.name); | 227 | printk(err, clocksource_mpu.name); |
228 | } | 228 | } |
229 | 229 | ||
230 | |||
231 | /* | ||
232 | * Scheduler clock - returns current time in nanosec units. | ||
233 | */ | ||
234 | unsigned long long sched_clock(void) | ||
235 | { | ||
236 | unsigned long ticks = 0 - omap_mpu_timer_read(1); | ||
237 | unsigned long long ticks64; | ||
238 | |||
239 | ticks64 = omap_mpu_timer2_overflows; | ||
240 | ticks64 <<= 32; | ||
241 | ticks64 |= ticks; | ||
242 | |||
243 | return cycles_2_ns(ticks64); | ||
244 | } | ||
245 | |||
246 | /* | 230 | /* |
247 | * --------------------------------------------------------------------------- | 231 | * --------------------------------------------------------------------------- |
248 | * Timer initialization | 232 | * Timer initialization |