summaryrefslogtreecommitdiffstats
path: root/arch/mips/loongson/lemote-2f/irq.c
diff options
context:
space:
mode:
authorWu Zhangjin <wuzhangjin@gmail.com>2009-11-21 19:05:24 +0800
committerRalf Baechle <ralf@linux-mips.org>2009-12-17 01:57:28 +0000
commitcb1ed9e117098269de3c0dfff816dff453dd4b59 (patch)
tree918d2eec2f59ca418e395d44b95881951a4dddab /arch/mips/loongson/lemote-2f/irq.c
parentec614d80b58677de30b876a16fdd3fde85bebdc1 (diff)
downloadblackbird-op-linux-cb1ed9e117098269de3c0dfff816dff453dd4b59.tar.gz
blackbird-op-linux-cb1ed9e117098269de3c0dfff816dff453dd4b59.zip
MIPS: Yeeloong 2F: Add LID open event as the wakeup event
Yeeloong 2F netbook has an KB3310B embedded controller to manage the LID action. When the LID is closed or opened a SCI interrupt is sent out and the corresponding event is saved to an EC register for later query. Allow the LID open interrupt to wake the processor from wait mode if it is in the suspend mode. Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com> Cc: linux-mips@linux-mips.org Patchwork: http://patchwork.linux-mips.org/patch/685/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/loongson/lemote-2f/irq.c')
-rw-r--r--arch/mips/loongson/lemote-2f/irq.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/mips/loongson/lemote-2f/irq.c b/arch/mips/loongson/lemote-2f/irq.c
index 50e7bb6012b7..77d32f9cf31e 100644
--- a/arch/mips/loongson/lemote-2f/irq.c
+++ b/arch/mips/loongson/lemote-2f/irq.c
@@ -9,6 +9,7 @@
*/
#include <linux/interrupt.h>
+#include <linux/module.h>
#include <asm/irq_cpu.h>
#include <asm/i8259.h>
@@ -30,7 +31,7 @@
* The generic i8259_irq() make the kernel hang on booting. Since we cannot
* get the irq via the IRR directly, we access the ISR instead.
*/
-static inline int mach_i8259_irq(void)
+int mach_i8259_irq(void)
{
int irq, isr;
@@ -60,6 +61,7 @@ static inline int mach_i8259_irq(void)
return irq;
}
+EXPORT_SYMBOL(mach_i8259_irq);
static void i8259_irqdispatch(void)
{
OpenPOWER on IntegriCloud