[POWERPC] Implement arch disable/enable irq hooks.
authorScott Wood <scottwood@freescale.com>
Wed, 12 Dec 2007 17:35:19 +0000 (04:35 +1100)
committerPaul Mackerras <paulus@samba.org>
Fri, 21 Dec 2007 11:13:35 +0000 (22:13 +1100)
commit7ac5dde99eb9fefdb526973c600075b7c5703a86
tree3ea3277339990880697d2ce89197293b7a0a2277
parentcbea92383d0d55fb4b4eb5833488bfee325254d6
[POWERPC] Implement arch disable/enable irq hooks.

These hooks ensure that a decrementer interrupt is not pending when
suspending; otherwise, problems may occur on 6xx/7xx/7xxx-based
systems (except for powermacs, which use a separate suspend path).
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.

Changed via-pmu.c to use the new ppc_md hooks, and made the arch_*
functions call the generic_* functions unconditionally.  -- paulus

Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/time.c
drivers/macintosh/via-pmu.c
include/asm-powerpc/machdep.h