summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/pm34xx.c
diff options
context:
space:
mode:
authorNicolas Pitre2011-08-01 23:25:06 +0200
committerNicolas Pitre2012-01-21 00:55:05 +0100
commit4fa20439a80c008d33f2865b0db94dcb5da467e2 (patch)
treeb11eb45155ffe12131716e7c4c8742276187fdf9 /arch/arm/mach-omap2/pm34xx.c
parentARM: OMAP1: Fix pm_idle during suspend (diff)
downloadkernel-qcow2-linux-4fa20439a80c008d33f2865b0db94dcb5da467e2.tar.gz
kernel-qcow2-linux-4fa20439a80c008d33f2865b0db94dcb5da467e2.tar.xz
kernel-qcow2-linux-4fa20439a80c008d33f2865b0db94dcb5da467e2.zip
ARM: clean up idle handlers
Let's factor out the need_resched() check instead of having it duplicated in every pm_idle implementations to avoid inconsistencies (omap2_pm_idle is missing it already). The forceful re-enablement of IRQs after pm_idle has returned can go. The warning certainly doesn't trigger for existing users. To get rid of the pm_idle calling convention oddity, let's introduce arm_pm_idle() allowing for the local_irq_enable() to be factored out from SOC specific implementations. The default pm_idle function becomes a wrapper for arm_pm_idle and it takes care of enabling IRQs closer to where they are initially disabled. And finally move the comment explaining the reason for that turning off of IRQs to a more proper location. Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org> Acked-and-tested-by: Jamie Iles <jamie@jamieiles.com>
Diffstat (limited to 'arch/arm/mach-omap2/pm34xx.c')
0 files changed, 0 insertions, 0 deletions