Skip to content

Commit

Permalink
MIPS: Lemote 2F: Suspend CS5536 MFGPT Timer
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wu Zhangjin authored and Ralf Baechle committed Dec 17, 2009
1 parent 59d4a91 commit c47a48d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions arch/mips/loongson/lemote-2f/pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

#include <loongson.h>

#include <cs5536/cs5536_mfgpt.h>
#include "ec_kb3310b.h"

#define I8042_KBD_IRQ 1
Expand Down Expand Up @@ -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();
}

0 comments on commit c47a48d

Please sign in to comment.