-
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.
- Loading branch information
Len Brown
committed
Mar 30, 2012
1 parent
99a2ffc
commit 2df36e9
Showing
98 changed files
with
2,934 additions
and
1,513 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,2 +1,2 @@ | ||
--- | ||
refs/heads/master: b24e5098853653554baf6ec975b9e855f3d6e5c0 | ||
refs/heads/master: ec612fcf43e09f5e05d37baf4d3f138b3fcc2f3d |
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
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
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
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#ifndef __ASM_ARM_CPUIDLE_H | ||
#define __ASM_ARM_CPUIDLE_H | ||
|
||
#ifdef CONFIG_CPU_IDLE | ||
extern int arm_cpuidle_simple_enter(struct cpuidle_device *dev, | ||
struct cpuidle_driver *drv, int index); | ||
#else | ||
static inline int arm_cpuidle_simple_enter(struct cpuidle_device *dev, | ||
struct cpuidle_driver *drv, int index) { return -ENODEV; } | ||
#endif | ||
|
||
/* Common ARM WFI state */ | ||
#define ARM_CPUIDLE_WFI_STATE_PWR(p) {\ | ||
.enter = arm_cpuidle_simple_enter,\ | ||
.exit_latency = 1,\ | ||
.target_residency = 1,\ | ||
.power_usage = p,\ | ||
.flags = CPUIDLE_FLAG_TIME_VALID,\ | ||
.name = "WFI",\ | ||
.desc = "ARM WFI",\ | ||
} | ||
|
||
/* | ||
* in case power_specified == 1, give a default WFI power value needed | ||
* by some governors | ||
*/ | ||
#define ARM_CPUIDLE_WFI_STATE ARM_CPUIDLE_WFI_STATE_PWR(UINT_MAX) | ||
|
||
#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
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* | ||
* Copyright 2012 Linaro Ltd. | ||
* | ||
* The code contained herein is licensed under the GNU General Public | ||
* License. You may obtain a copy of the GNU General Public License | ||
* Version 2 or later at the following locations: | ||
* | ||
* http://www.opensource.org/licenses/gpl-license.html | ||
* http://www.gnu.org/copyleft/gpl.html | ||
*/ | ||
|
||
#include <linux/cpuidle.h> | ||
#include <asm/proc-fns.h> | ||
|
||
int arm_cpuidle_simple_enter(struct cpuidle_device *dev, | ||
struct cpuidle_driver *drv, int index) | ||
{ | ||
cpu_do_idle(); | ||
|
||
return index; | ||
} |
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
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
Oops, something went wrong.