All of lore.kernel.org
 help / color / mirror / Atom feed
* [parisc] [PATCH] timer_interrupt: Fix "SLOW!" warning on rp3440
@ 2011-03-12 17:08 John David Anglin
  2011-03-12 20:59 ` James Bottomley
  2011-03-13 23:58 ` Grant Grundler
  0 siblings, 2 replies; 8+ messages in thread
From: John David Anglin @ 2011-03-12 17:08 UTC (permalink / raw)
  To: linux-parisc

The attached change fixes the "SLOW!" timer_interrupt warning that I
occassionally see on my rp3440 (800 MHz).  We need to avoid using the
expensive div/mul method.  I have seen instances where it takes more
than 0x7000 cycles.

Signed-off-by: John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>

Dave
-- 
J. David Anglin                                  dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)

diff --git a/arch/parisc/kernel/time.c b/arch/parisc/kernel/time.c
index 05511cc..63071c4 100644
--- a/arch/parisc/kernel/time.c
+++ b/arch/parisc/kernel/time.c
@@ -76,7 +76,7 @@ irqreturn_t __irq_entry timer_interrupt(int irq, void *dev_id)
 
 	cycles_elapsed = now - next_tick;
 
-	if ((cycles_elapsed >> 6) < cpt) {
+	if ((cycles_elapsed >> 7) < cpt) {
 		/* use "cheap" math (add/subtract) instead
 		 * of the more expensive div/mul method
 		 */

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

end of thread, other threads:[~2011-03-14  2:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-12 17:08 [parisc] [PATCH] timer_interrupt: Fix "SLOW!" warning on rp3440 John David Anglin
2011-03-12 20:59 ` James Bottomley
2011-03-12 23:36   ` John David Anglin
2011-03-13 23:58 ` Grant Grundler
2011-03-14  1:22   ` John David Anglin
2011-03-14  1:50     ` Grant Grundler
2011-03-14  2:16       ` John David Anglin
2011-03-14  1:44   ` Grant Grundler

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.