ARM: mach-exynos: use standard arch_idle()
This is equivalent and more similar to existing architectures. Signed-off-by: Nicolas Pitre <nico@linaro.org>
This commit is contained in:
parent
1ab4ef9112
commit
8dd6718883
2 changed files with 1 additions and 13 deletions
|
@ -201,14 +201,6 @@ static struct map_desc exynos4_iodesc1[] __initdata = {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
static void exynos_idle(void)
|
|
||||||
{
|
|
||||||
if (!need_resched())
|
|
||||||
cpu_do_idle();
|
|
||||||
|
|
||||||
local_irq_enable();
|
|
||||||
}
|
|
||||||
|
|
||||||
void exynos4_restart(char mode, const char *cmd)
|
void exynos4_restart(char mode, const char *cmd)
|
||||||
{
|
{
|
||||||
__raw_writel(0x1, S5P_SWRESET);
|
__raw_writel(0x1, S5P_SWRESET);
|
||||||
|
@ -467,10 +459,6 @@ early_initcall(exynos4_l2x0_cache_init);
|
||||||
int __init exynos_init(void)
|
int __init exynos_init(void)
|
||||||
{
|
{
|
||||||
printk(KERN_INFO "EXYNOS: Initializing architecture\n");
|
printk(KERN_INFO "EXYNOS: Initializing architecture\n");
|
||||||
|
|
||||||
/* set idle function */
|
|
||||||
pm_idle = exynos_idle;
|
|
||||||
|
|
||||||
return device_register(&exynos4_dev);
|
return device_register(&exynos4_dev);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -15,6 +15,6 @@
|
||||||
|
|
||||||
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 */
|
||||||
|
|
Loading…
Add table
Reference in a new issue