Commit 460863ac authored by Nicolas Pitre's avatar Nicolas Pitre Committed by Nicolas Pitre

ARM: mach-s5pv210: use standard arch_idle()

This is equivalent and more similar to existing architectures.
Signed-off-by: default avatarNicolas Pitre <nico@linaro.org>
parent 0bcd24b0
...@@ -142,14 +142,6 @@ static struct map_desc s5pv210_iodesc[] __initdata = { ...@@ -142,14 +142,6 @@ static struct map_desc s5pv210_iodesc[] __initdata = {
} }
}; };
static void s5pv210_idle(void)
{
if (!need_resched())
cpu_do_idle();
local_irq_enable();
}
void s5pv210_restart(char mode, const char *cmd) void s5pv210_restart(char mode, const char *cmd)
{ {
__raw_writel(0x1, S5P_SWRESET); __raw_writel(0x1, S5P_SWRESET);
...@@ -247,10 +239,6 @@ core_initcall(s5pv210_core_init); ...@@ -247,10 +239,6 @@ core_initcall(s5pv210_core_init);
int __init s5pv210_init(void) int __init s5pv210_init(void)
{ {
printk(KERN_INFO "S5PV210: Initializing architecture\n"); printk(KERN_INFO "S5PV210: Initializing architecture\n");
/* set idle function */
pm_idle = s5pv210_idle;
return device_register(&s5pv210_dev); return device_register(&s5pv210_dev);
} }
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
static void arch_idle(void) static void arch_idle(void)
{ {
/* nothing here yet */ cpu_do_idle();
} }
#endif /* __ASM_ARCH_SYSTEM_H */ #endif /* __ASM_ARCH_SYSTEM_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment