diff options
-rw-r--r-- | arch/mips/loongson/lemote-2f/pm.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/mips/loongson/lemote-2f/pm.c b/arch/mips/loongson/lemote-2f/pm.c index 81c06410aa76..d7af2e616592 100644 --- a/arch/mips/loongson/lemote-2f/pm.c +++ b/arch/mips/loongson/lemote-2f/pm.c | |||
@@ -22,6 +22,7 @@ | |||
22 | 22 | ||
23 | #include <loongson.h> | 23 | #include <loongson.h> |
24 | 24 | ||
25 | #include <cs5536/cs5536_mfgpt.h> | ||
25 | #include "ec_kb3310b.h" | 26 | #include "ec_kb3310b.h" |
26 | 27 | ||
27 | #define I8042_KBD_IRQ 1 | 28 | #define I8042_KBD_IRQ 1 |
@@ -136,3 +137,13 @@ int wakeup_loongson(void) | |||
136 | 137 | ||
137 | return 0; | 138 | return 0; |
138 | } | 139 | } |
140 | |||
141 | void __weak mach_suspend(void) | ||
142 | { | ||
143 | disable_mfgpt0_counter(); | ||
144 | } | ||
145 | |||
146 | void __weak mach_resume(void) | ||
147 | { | ||
148 | enable_mfgpt0_counter(); | ||
149 | } | ||