Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 264301
b: refs/heads/master
c: 870168a
h: refs/heads/master
i:
  264299: 363f91c
v: v3
  • Loading branch information
Manuel Lauss authored and Ralf Baechle committed Sep 21, 2011
1 parent c5742fe commit 687ab28
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c78c48827336b8aec2a5afcf249f0d0a7fe16859
refs/heads/master: 870168a031b3c5b78191d719d375221f01e98e11
22 changes: 14 additions & 8 deletions trunk/arch/mips/alchemy/common/power.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,15 +158,21 @@ static void restore_core_regs(void)

void au_sleep(void)
{
int cpuid = alchemy_get_cputype();
if (cpuid != ALCHEMY_CPU_UNKNOWN) {
save_core_regs();
if (cpuid <= ALCHEMY_CPU_AU1500)
alchemy_sleep_au1000();
else if (cpuid <= ALCHEMY_CPU_AU1200)
alchemy_sleep_au1550();
restore_core_regs();
save_core_regs();

switch (alchemy_get_cputype()) {
case ALCHEMY_CPU_AU1000:
case ALCHEMY_CPU_AU1500:
case ALCHEMY_CPU_AU1100:
alchemy_sleep_au1000();
break;
case ALCHEMY_CPU_AU1550:
case ALCHEMY_CPU_AU1200:
alchemy_sleep_au1550();
break;
}

restore_core_regs();
}

#endif /* CONFIG_PM */

0 comments on commit 687ab28

Please sign in to comment.