All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] vr41xx: fix problem with vr41xx_cpu_wait
@ 2008-08-05 10:43 Ricardo Mendoza
  2008-08-06  1:49 ` Yoichi Yuasa
  0 siblings, 1 reply; 9+ messages in thread
From: Ricardo Mendoza @ 2008-08-05 10:43 UTC (permalink / raw)
  To: linux-mips; +Cc: yoichi_yuasa, ralf, ricmm

Hello,

Yoichi, please correct me if I am wrong but I think that the "standby"
instruction does not set IE bit on its own, so calling it with
interrupts disabled will loop the cpu away forever on standby state
being unable to come back due to no interrupts getting through.

Please ack the patch if you consider it correct.

Please apply afterwards, Ralf.


     Ricardo

---

Standby instruction can't be called with interrupts disabled
as it doesn't set IE bit on it's own.

Signed-off-by: Ricardo Mendoza <ricmm@gentoo.org>
---
 arch/mips/vr41xx/common/pmu.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/arch/mips/vr41xx/common/pmu.c b/arch/mips/vr41xx/common/pmu.c
index 028aaf7..6d651ec 100644
--- a/arch/mips/vr41xx/common/pmu.c
+++ b/arch/mips/vr41xx/common/pmu.c
@@ -48,14 +48,8 @@ static void __iomem *pmu_base;
 
 static void vr41xx_cpu_wait(void)
 {
-	local_irq_disable();
 	if (!need_resched())
-		/*
-		 * "standby" sets IE bit of the CP0_STATUS to 1.
-		 */
 		__asm__("standby;\n");
-	else
-		local_irq_enable();
 }
 
 static inline void software_reset(void)

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

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

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-05 10:43 [PATCH] vr41xx: fix problem with vr41xx_cpu_wait Ricardo Mendoza
2008-08-06  1:49 ` Yoichi Yuasa
2008-08-06  2:08   ` Ricardo Mendoza
2008-08-06  4:42     ` Yoichi Yuasa
2008-08-06 13:30       ` Atsushi Nemoto
2008-08-06 16:17         ` Ricardo Mendoza
2008-08-06 17:10           ` Atsushi Nemoto
2008-08-06 17:15             ` Ralf Baechle
2008-08-19 15:02               ` Atsushi Nemoto

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.