mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
MIPS: Lemote 2F: Suspend CS5536 MFGPT Timer
Before putting the Loongson 2F into wait mode, suspend the MFGPT Timer and after wake-up resume it. This may save some power. Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com> Cc: linux-mips@linux-mips.org Patchwork: http://patchwork.linux-mips.org/patch/706/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
59d4a91416
commit
c47a48d83a
1 changed files with 11 additions and 0 deletions
|
@ -22,6 +22,7 @@
|
|||
|
||||
#include <loongson.h>
|
||||
|
||||
#include <cs5536/cs5536_mfgpt.h>
|
||||
#include "ec_kb3310b.h"
|
||||
|
||||
#define I8042_KBD_IRQ 1
|
||||
|
@ -136,3 +137,13 @@ int wakeup_loongson(void)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void __weak mach_suspend(void)
|
||||
{
|
||||
disable_mfgpt0_counter();
|
||||
}
|
||||
|
||||
void __weak mach_resume(void)
|
||||
{
|
||||
enable_mfgpt0_counter();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue