-
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
Nicolas Pitre
authored and
Nicolas Pitre
committed
Jan 20, 2012
1 parent
58af9ee
commit 168f2d2
Showing
5 changed files
with
33 additions
and
13 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: 1b7f72fc395d3d2b498fee5ecfb9e46497f55cdd | ||
refs/heads/master: 8925b0f88ec3f6c65418bf5f430a16a827f4c77b |
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 @@ | ||
/* | ||
* arch/arm/mach-gemini/idle.c | ||
*/ | ||
|
||
#include <linux/init.h> | ||
#include <asm/system.h> | ||
#include <asm/proc-fns.h> | ||
|
||
static void gemini_idle(void) | ||
{ | ||
/* | ||
* Because of broken hardware we have to enable interrupts or the CPU | ||
* will never wakeup... Acctualy it is not very good to enable | ||
* interrupts first since scheduler can miss a tick, but there is | ||
* no other way around this. Platforms that needs it for power saving | ||
* should call enable_hlt() in init code, since by default it is | ||
* disabled. | ||
*/ | ||
local_irq_enable(); | ||
cpu_do_idle(); | ||
} | ||
|
||
static int __init gemini_idle_init(void) | ||
{ | ||
arm_pm_idle = gemini_idle; | ||
return 0; | ||
} | ||
|
||
arch_initcall(gemini_idle_init); |
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