Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 295320
b: refs/heads/master
c: 1ab4ef9
h: refs/heads/master
v: v3
  • Loading branch information
Nicolas Pitre authored and Nicolas Pitre committed Jan 20, 2012
1 parent 6e7bd90 commit 06b89eb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 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: 20a7b2c15171522d7c5005ff6d4aa1a0e8581e79
refs/heads/master: 1ab4ef9112e7ca5c5d9a1770dff69b9ca21867ec
15 changes: 6 additions & 9 deletions trunk/arch/arm/mach-s5p64x0/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,15 +146,12 @@ static void s5p64x0_idle(void)
{
unsigned long val;

if (!need_resched()) {
val = __raw_readl(S5P64X0_PWR_CFG);
val &= ~(0x3 << 5);
val |= (0x1 << 5);
__raw_writel(val, S5P64X0_PWR_CFG);
val = __raw_readl(S5P64X0_PWR_CFG);
val &= ~(0x3 << 5);
val |= (0x1 << 5);
__raw_writel(val, S5P64X0_PWR_CFG);

cpu_do_idle();
}
local_irq_enable();
cpu_do_idle();
}

/*
Expand Down Expand Up @@ -286,7 +283,7 @@ int __init s5p64x0_init(void)
printk(KERN_INFO "S5P64X0(S5P6440/S5P6450): Initializing architecture\n");

/* set idle function */
pm_idle = s5p64x0_idle;
arm_pm_idle = s5p64x0_idle;

return device_register(&s5p64x0_dev);
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-s5p64x0/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

static void arch_idle(void)
{
/* nothing here yet */
cpu_do_idle();
}

#endif /* __ASM_ARCH_SYSTEM_H */

0 comments on commit 06b89eb

Please sign in to comment.