Title: [9820] trunk/arch/blackfin/kernel/time-ts.c: Blackfin: time-ts: ack gptimer sooner to avoid missing short ints
Revision
9820
Author
vapier
Date
2011-04-04 11:26:11 -0400 (Mon, 04 Apr 2011)

Log Message

Blackfin: time-ts: ack gptimer sooner to avoid missing short ints

Reported-by: isabelle leonardi

Modified Paths

Diff

Modified: trunk/arch/blackfin/kernel/time-ts.c (9819 => 9820)


--- trunk/arch/blackfin/kernel/time-ts.c	2011-04-04 15:20:50 UTC (rev 9819)
+++ trunk/arch/blackfin/kernel/time-ts.c	2011-04-04 15:26:11 UTC (rev 9820)
@@ -206,8 +206,14 @@
 {
 	struct clock_event_device *evt = dev_id;
 	smp_mb();
+	/*
+	 * We want to ACK before we handle so that we can handle smaller timer
+	 * intervals.  This way if the timer expires again while we're handling
+	 * things, we're more likely to see that 2nd int rather than swallowing
+	 * it by ACKing the int at the end of this handler.
+	 */
+	bfin_gptmr0_ack();
 	evt->event_handler(evt);
-	bfin_gptmr0_ack();
 	return IRQ_HANDLED;
 }
 
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to