| To: | Ralf Baechle <ralf@linux-mips.org> |
|---|---|
| Subject: | [PATCH 2/2][MIPS] add irq_disable_hazard() before c0_compare_int_pending() |
| From: | Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp> |
| Date: | Mon, 17 Mar 2008 23:49:42 +0900 |
| Cc: | yoichi_yuasa@tripeaks.co.jp, linux-mips <linux-mips@linux-mips.org> |
| In-reply-to: | <20080317234740.705a8a34.yoichi_yuasa@tripeaks.co.jp> |
| Organization: | TriPeaks Corporation |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <20080317234740.705a8a34.yoichi_yuasa@tripeaks.co.jp> |
| Sender: | linux-mips-bounce@linux-mips.org |
Add irq_disable_hazard() before c0_compare_int_pending().
VR41xx sometime fails at this point.
It can be fix this patch.
Signed-off-by: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
diff -pruN -X /home/yuasa/Memo/dontdiff linux-orig/arch/mips/kernel/cevt-r4k.c
linux/arch/mips/kernel/cevt-r4k.c
--- linux-orig/arch/mips/kernel/cevt-r4k.c 2008-03-12 16:37:31.317624763
+0900
+++ linux/arch/mips/kernel/cevt-r4k.c 2008-03-12 16:37:39.894113510 +0900
@@ -205,6 +205,7 @@ static int c0_compare_int_usable(void)
while ((int)(read_c0_count() - cnt) <= 0)
; /* Wait for expiry */
+ irq_disable_hazard();
if (!c0_compare_int_pending())
return 0;
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Compiler error? [was: Re: new kernel oops in recent kernels], Thomas Bogendoerfer |
|---|---|
| Next by Date: | [PATCH 1/2][MIPS] replace c0_compare acknowledge by c0_timer_ack(), Yoichi Yuasa |
| Previous by Thread: | [PATCH 1/2][MIPS] replace c0_compare acknowledge by c0_timer_ack(), Yoichi Yuasa |
| Next by Thread: | Re: [PATCH 1/2][MIPS] replace c0_compare acknowledge by c0_timer_ack(), Ralf Baechle |
| Indexes: | [Date] [Thread] [Top] [All Lists] |