-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARM: pm: add function to set WFI low-power mode for SMP CPUs
Add a function to set the SCU low-power mode for SMP CPUs. This centralizes this functionality rather than having to expose the SCU register definitions to each platform. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
- Loading branch information
Russell King
committed
Feb 11, 2011
1 parent
afe8a88
commit 292ec42
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
#ifndef __ASMARM_ARCH_SCU_H | ||
#define __ASMARM_ARCH_SCU_H | ||
|
||
#define SCU_PM_NORMAL 0 | ||
#define SCU_PM_DORMANT 2 | ||
#define SCU_PM_POWEROFF 3 | ||
|
||
#ifndef __ASSEMBLER__ | ||
unsigned int scu_get_core_count(void __iomem *); | ||
void scu_enable(void __iomem *); | ||
int scu_power_mode(void __iomem *, unsigned int); | ||
#endif | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters