Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 71e256c5 authored by Nicolas Pitre's avatar Nicolas Pitre Committed by Nicolas Pitre
Browse files

ARM: mach-clps711x: move special idle code out of line



... and hook it to arm_pm_idle.

Signed-off-by: default avatarNicolas Pitre <nicolas.pitre@linaro.org>
parent c9dfafba
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
@@ -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);
+1 −4
Original line number Diff line number Diff line
@@ -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