]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
ARM: OMAP: Remove MPU-timer based sched_clock()
authorKevin Hilman <khilman@mvista.com>
Mon, 12 Nov 2007 23:24:04 +0000 (15:24 -0800)
committerTony Lindgren <tony@atomide.com>
Tue, 27 Nov 2007 04:14:06 +0000 (20:14 -0800)
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>
arch/arm/mach-omap1/time.c

index a4f8b2055437af7efe56dbbe85edc4dfa9084331..c189a2d634e50cbe71dd45a7a7e28e8621e0058a 100644 (file)
@@ -260,22 +260,6 @@ static void __init omap_init_clocksource(unsigned long rate)
                printk(err, clocksource_mpu.name);
 }
 
-
-/*
- * Scheduler clock - returns current time in nanosec units.
- */
-unsigned long long sched_clock(void)
-{
-       unsigned long ticks = 0 - omap_mpu_timer_read(1);
-       unsigned long long ticks64;
-
-       ticks64 = omap_mpu_timer2_overflows;
-       ticks64 <<= 32;
-       ticks64 |= ticks;
-
-       return cycles_2_ns(ticks64);
-}
-
 /*
  * ---------------------------------------------------------------------------
  * Timer initialization