Stuart Menefy f2fb4e4f64 sh: Conditionally re-enable IRQs in fault path.
The current kernel behaviour is to reenable interrupts unconditionally
when taking a page fault. This patch changes this to only enable them
if interrupts were previously enabled.

It also fixes a problem seen with this fix in place: the kernel previously
flushed the vsyscall page when handling a signal, which is not only
unncessary, but caused a possible sleep with interrupts disabled.

Signed-off-by: Stuart Menefy <stuart.menefy@st.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2008-07-28 18:10:33 +09:00
..
2008-07-27 13:57:36 +02:00
2008-07-26 12:00:11 -07:00
2008-07-26 12:00:11 -07:00
2008-07-26 12:00:11 -07:00
2008-07-26 12:00:11 -07:00
2008-07-26 12:00:11 -07:00
2008-07-26 12:00:11 -07:00
2008-07-26 12:00:11 -07:00
2008-07-26 12:00:10 -07:00
2008-07-26 12:00:10 -07:00
2008-07-26 12:00:10 -07:00
2008-07-26 12:00:09 -07:00