All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH urgent] MIPS: Fixup of the r4k timer
@ 2010-02-01  9:10 Wu Zhangjin
  2010-02-02  3:03 ` Shane McDonald
  0 siblings, 1 reply; 9+ messages in thread
From: Wu Zhangjin @ 2010-02-01  9:10 UTC (permalink / raw)
  To: ralf; +Cc: David VomLehn, mbizon, linux-mips, Wu Zhangjin

From: Wu Zhangjin <wuzhangjin@gmail.com>

As reported by Maxime Bizon, the commit "MIPS: PowerTV: Fix support for
timer interrupts with > 64 external IRQs" have broken the r4k timer
since it didn't initialize the cp0_compare_irq_shift variable used in
c0_compare_int_pending() on the architectures whose cpu_has_mips_r2 is
false.

This patch fixes it via initializing the cp0_compare_irq_shift as the
cp0_compare_irq used in the old c0_compare_int_pending().

Reported-by: Maxime Bizon <mbizon@freebox.fr>
Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com>
---
 arch/mips/kernel/traps.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c
index 338dfe8..31b204b 100644
--- a/arch/mips/kernel/traps.c
+++ b/arch/mips/kernel/traps.c
@@ -1501,6 +1501,7 @@ void __cpuinit per_cpu_trap_init(void)
 			cp0_perfcount_irq = -1;
 	} else {
 		cp0_compare_irq = CP0_LEGACY_COMPARE_IRQ;
+		cp0_compare_irq_shift = cp0_compare_irq;
 		cp0_perfcount_irq = -1;
 	}
 
-- 
1.6.6

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

end of thread, other threads:[~2010-02-03 19:15 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-01  9:10 [PATCH urgent] MIPS: Fixup of the r4k timer Wu Zhangjin
2010-02-02  3:03 ` Shane McDonald
2010-02-03  1:29   ` Ralf Baechle
2010-02-03 11:34     ` Cached Base address difference Anoop P.A.
2010-02-03 11:34       ` Anoop P.A.
2010-02-03 12:33       ` Ralf Baechle
2010-02-03 13:38         ` Anoop P.A.
2010-02-03 13:38           ` Anoop P.A.
2010-02-03 19:15           ` Chris Dearman

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.