From: Tony Lindgren Date: Wed, 14 Sep 2005 11:33:55 +0000 (+0300) Subject: ARM: OMAP: Fix CLOCK_TICK_RATE for 32KHz timer for POSIX timers X-Git-Tag: v2.6.15-omap2~229 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=c9c0b33b063eecce8c9a3868c90d67507e89671d;p=linux-2.6-omap-h63xx.git ARM: OMAP: Fix CLOCK_TICK_RATE for 32KHz timer for POSIX timers POSIX timers were triggering too fast. This was caused by incorrect CLOCK_TICK_RATE for 32KHz timer. --- diff --git a/include/asm-arm/arch-omap/timex.h b/include/asm-arm/arch-omap/timex.h index b61ddb491e8..21f2e367185 100644 --- a/include/asm-arm/arch-omap/timex.h +++ b/include/asm-arm/arch-omap/timex.h @@ -28,6 +28,14 @@ #if !defined(__ASM_ARCH_OMAP_TIMEX_H) #define __ASM_ARCH_OMAP_TIMEX_H +/* + * OMAP 32KHz timer updates time one jiffie at a time from a secondary timer, + * and that's why the CLOCK_TICK_RATE is not 32768. + */ +#ifdef CONFIG_OMAP_32K_TIMER +#define CLOCK_TICK_RATE (CONFIG_OMAP_32K_TIMER_HZ) +#else #define CLOCK_TICK_RATE (HZ * 100000UL) +#endif #endif /* __ASM_ARCH_OMAP_TIMEX_H */