* [PATCH] sh: Don't enable interrupts in the page fault path
@ 2009-09-26 19:44 Matt Fleming
2009-09-28 8:17 ` Paul Mundt
0 siblings, 1 reply; 2+ messages in thread
From: Matt Fleming @ 2009-09-26 19:44 UTC (permalink / raw)
To: linux-sh
There's already code in do_page_fault() to conditionally enable
interrupts, so we don't need to unconditonally enable them before
calling it. This fixes a lockdep warning where we called
trace_hardirqs_off() but with irqs still enabled.
Signed-off-by: Matt Fleming <matt@console-pimps.org>
---
arch/sh/kernel/cpu/sh3/entry.S | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/arch/sh/kernel/cpu/sh3/entry.S b/arch/sh/kernel/cpu/sh3/entry.S
index 0151933..bb407ef 100644
--- a/arch/sh/kernel/cpu/sh3/entry.S
+++ b/arch/sh/kernel/cpu/sh3/entry.S
@@ -152,8 +152,6 @@ call_do_page_fault:
mov.l 1f, r0
mov.l @r0, r6
- sti
-
mov.l 3f, r0
mov.l 4f, r1
mov r15, r4
--
1.6.3.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] sh: Don't enable interrupts in the page fault path
2009-09-26 19:44 [PATCH] sh: Don't enable interrupts in the page fault path Matt Fleming
@ 2009-09-28 8:17 ` Paul Mundt
0 siblings, 0 replies; 2+ messages in thread
From: Paul Mundt @ 2009-09-28 8:17 UTC (permalink / raw)
To: linux-sh
On Sat, Sep 26, 2009 at 08:44:05PM +0100, Matt Fleming wrote:
> There's already code in do_page_fault() to conditionally enable
> interrupts, so we don't need to unconditonally enable them before
> calling it. This fixes a lockdep warning where we called
> trace_hardirqs_off() but with irqs still enabled.
>
> Signed-off-by: Matt Fleming <matt@console-pimps.org>
This is a relic from the days where do_page_fault() did not do the
conditional re-enabling. Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-09-28 8:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-26 19:44 [PATCH] sh: Don't enable interrupts in the page fault path Matt Fleming
2009-09-28 8:17 ` Paul Mundt
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.