x86: geode: Mark mfgpt irq IRQF_TIMER to prevent resume failure
commit7e09e4e01708df59db28d828a03ce940562381cd
authorThomas Gleixner <tglx@linutronix.de>
Fri, 24 Jul 2009 06:34:59 +0000 (24 08:34 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 30 Jul 2009 21:39:59 +0000 (30 14:39 -0700)
treefbda558cfefd3c87c5638aa58b518d92e4af4b98
parentff1a7a3f2bb52774ac94a624475403ee37ca3541
x86: geode: Mark mfgpt irq IRQF_TIMER to prevent resume failure

commit d6c585a4342a2ff627a29f9aea77c5ed4cd76023 upstream.

Timer interrupts are excluded from being disabled during suspend. The
clock events code manages the disabling of clock events on its own
because the timer interrupt needs to be functional before the resume
code reenables the device interrupts.

The mfgpt timer request its interrupt without setting the IRQF_TIMER
flag so suspend_device_irqs() disables it as well which results in a
fatal resume failure.

Adding IRQF_TIMER to the interupt flags when requesting the mrgpt
timer interrupt solves the problem.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
LKML-Reference: <new-submission>
Cc: Andres Salomon <dilinger@debian.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/kernel/mfgpt_32.c