]> Zhao Yanbai Git Server - minix.git/commitdiff
arm:configure tick per ms to reflect the free running clock. 85/585/4
authorKees Jongenburger <kees.jongenburger@gmail.com>
Thu, 23 May 2013 15:58:51 +0000 (17:58 +0200)
committerKees Jongenburger <kees.jongenburger@gmail.com>
Fri, 24 May 2013 11:59:04 +0000 (13:59 +0200)
Change-Id: Ifc02658d6ae48dd01a868bfaa3d60f77bc6cc800

kernel/arch/earm/arch_clock.c

index 67fc0ed458fe489afaff68593dcd8163886f607b..0235e1d1a3ebd4c6569e936391fa81c1e420c86f 100644 (file)
@@ -26,8 +26,12 @@ int init_local_timer(unsigned freq)
 {
        omap3_timer_init(freq);
        omap3_frclock_init();
-       /* always only 1 cpu in the system */
-       tsc_per_ms[0] = 1;
+#ifdef DM37XX
+       tsc_per_ms[0] = 16250;
+#endif
+#ifdef AM335X
+       tsc_per_ms[0] = 15000;
+#endif
 
        return 0;
 }