From: Kees Jongenburger Date: Thu, 23 May 2013 15:58:51 +0000 (+0200) Subject: arm:configure tick per ms to reflect the free running clock. X-Git-Tag: v3.3.0~965 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zlib_tech.html?a=commitdiff_plain;h=534b19187efd2304a935d41742165087d65cd7e8;p=minix.git arm:configure tick per ms to reflect the free running clock. Change-Id: Ifc02658d6ae48dd01a868bfaa3d60f77bc6cc800 --- diff --git a/kernel/arch/earm/arch_clock.c b/kernel/arch/earm/arch_clock.c index 67fc0ed45..0235e1d1a 100644 --- a/kernel/arch/earm/arch_clock.c +++ b/kernel/arch/earm/arch_clock.c @@ -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; }