All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] OMAP2: gptimer min_delta_ns should be rounded up
@ 2008-12-29 17:14 Aaro Koskinen
  2008-12-29 17:38 ` Woodruff, Richard
  0 siblings, 1 reply; 8+ messages in thread
From: Aaro Koskinen @ 2008-12-29 17:14 UTC (permalink / raw)
  To: linux-omap

clockevent_delta2ns() used to initialize min_delta_ns rounds the value
down, so the result can be too small. When clockevents_program_event()
is using too small value it will try to program the timer with zero
ticks stalling the timer queue.

Signed-off-by: Aaro Koskinen <Aaro.Koskinen@nokia.com>
---
 arch/arm/mach-omap2/timer-gp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/arm/mach-omap2/timer-gp.c b/arch/arm/mach-omap2/timer-gp.c
index 787cfef..375c18e 100644
--- a/arch/arm/mach-omap2/timer-gp.c
+++ b/arch/arm/mach-omap2/timer-gp.c
@@ -121,7 +121,7 @@ static void __init omap2_gp_clockevent_init(void)
 	clockevent_gpt.max_delta_ns =
 		clockevent_delta2ns(0xffffffff, &clockevent_gpt);
 	clockevent_gpt.min_delta_ns =
-		clockevent_delta2ns(1, &clockevent_gpt);
+		clockevent_delta2ns(1, &clockevent_gpt) + 1;
 
 	clockevent_gpt.cpumask = cpumask_of_cpu(0);
 	clockevents_register_device(&clockevent_gpt);
-- 
1.5.4.3


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-01-09  4:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-29 17:14 [PATCH] OMAP2: gptimer min_delta_ns should be rounded up Aaro Koskinen
2008-12-29 17:38 ` Woodruff, Richard
2008-12-30 16:50   ` Aaro Koskinen
2008-12-30 17:01     ` Woodruff, Richard
2008-12-31 15:22       ` Aaro Koskinen
2008-12-31 15:47         ` Woodruff, Richard
2009-01-05  4:57           ` Paul Walmsley
2009-01-09  4:41             ` Woodruff, Richard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.