Commit c9c0b33b authored by Tony Lindgren's avatar Tony Lindgren

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.
parent c4497f16
...@@ -28,6 +28,14 @@ ...@@ -28,6 +28,14 @@
#if !defined(__ASM_ARCH_OMAP_TIMEX_H) #if !defined(__ASM_ARCH_OMAP_TIMEX_H)
#define __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) #define CLOCK_TICK_RATE (HZ * 100000UL)
#endif
#endif /* __ASM_ARCH_OMAP_TIMEX_H */ #endif /* __ASM_ARCH_OMAP_TIMEX_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment