Thread (10 messages) flat view 10 messages, 4 authors, 2007-09-05

Re: [PATCH 2/4] Implement arch disable/enable irq hooks.

From: Johannes Berg <johannes@sipsolutions.net>
Date: 2007-07-13 10:13:04

On Thu, 2007-07-12 at 14:12 -0500, Scott Wood wrote:
These hooks ensure that a decrementer interrupt is not pending when
suspending; otherwise, problems may occur.  For example, with deep sleep
on the 831x, a pending decrementer will cause a system freeze because the
SoC thinks the decrementer interrupt would have woken the system, but the
core must have interrupts disabled due to the setup required for deep
sleep.
+/* Overrides the weak version in kernel/power/main.c */
+void arch_suspend_disable_irqs(void)
+{
+	if (ppc_md.suspend_disable_irqs)
+		ppc_md.suspend_disable_irqs();
+	else
+		generic_suspend_disable_irqs();
+}
Looks good to me, thanks for the update with ppc_md.

johannes

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help