]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: at91: remove wait_for_interrupt definition
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 24 Jan 2012 23:56:07 +0000 (00:56 +0100)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Fri, 3 Feb 2012 12:42:19 +0000 (13:42 +0100)
commit9f63a4a8f78b84a47b59a67dcd0403d0275de89e
treebebbb2ac6ff9aa7073874141816163bf1ba4824b
parent50db8599ddc1f4d14a454c072e7c79bd3444c7d3
ARM: at91: remove wait_for_interrupt definition

All the "wait_for_interrupt" definition are aliases to cpu_do_idle.
Only the rm9200 has an asm routine to switch to wfi. But the cpu_do_idle
for this platform has exactly the same asm routine.

arch/arm/mm/proc-arm920.S
..
ENTRY(cpu_arm920_do_idle)
        mcr     p15, 0, r0, c7, c0, 4           @ Wait for interrupt
..

Then it is safe to invoke cpu_do_idle for this platform. As all the
wait_for_interrupts are definition for cpu_do_idle, let's remove it
and replace its invokation by cpu_do_idle.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
arch/arm/mach-at91/pm.c
arch/arm/mach-at91/pm.h