Permalink
Browse files

The TIMER_PERIOD should be calculated using the timer interrupt frequ…

…ency.
  • Loading branch information...
1 parent eab45cb commit b57a8d8bb13670b25f06de9a002fb91025f46099 @ian-cim ian-cim committed Jul 25, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 arch/arm/mach-bcm2708/bcm2708.c
@@ -618,7 +618,7 @@ void __init bcm2708_init(void)
#endif
}
-#define TIMER_PERIOD 10000 /* HZ in microsecs */
+#define TIMER_PERIOD DIV_ROUND_CLOSEST(STC_FREQ_HZ, HZ)
static void timer_set_mode(enum clock_event_mode mode,
struct clock_event_device *clk)

0 comments on commit b57a8d8

Please sign in to comment.