Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 295323
b: refs/heads/master
c: 71e256c
h: refs/heads/master
i:
  295321: 2adcfb8
  295319: 6e7bd90
v: v3
  • Loading branch information
Nicolas Pitre authored and Nicolas Pitre committed Jan 20, 2012
1 parent ed619fb commit 8abe6a2
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 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: c9dfafbaca0b66a6665242d019b3b9c5be056fcf
refs/heads/master: 71e256c54d67f55536bae184bb579c682714a95a
16 changes: 16 additions & 0 deletions trunk/arch/arm/mach-clps711x/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -225,3 +225,19 @@ void clps711x_restart(char mode, const char *cmd)
{
soft_restart(0);
}

static void clps711x_idle(void)
{
clps_writel(1, HALT);
__asm__ __volatile__(
"mov r0, r0\n\
mov r0, r0");
}

static int __init clps711x_idle_init(void)
{
arm_pm_idle = clps711x_idle;
return 0;
}

arch_initcall(clps711x_idle_init);
5 changes: 1 addition & 4 deletions trunk/arch/arm/mach-clps711x/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,7 @@

static inline void arch_idle(void)
{
clps_writel(1, HALT);
__asm__ __volatile__(
"mov r0, r0\n\
mov r0, r0");
cpu_do_idle();
}

#endif

0 comments on commit 8abe6a2

Please sign in to comment.