tmp_suning_uos_patched/drivers/cpuidle
Tomasz Figa 01601b3495 ARM: EXYNOS: Fix suspend/resume sequences
Due to recent consolidation of Exynos suspend and cpuidle code, some
parts of suspend and resume sequences are executed two times, once from
exynos_pm_syscore_ops and then from exynos_cpu_pm_notifier() and thus it
breaks suspend, at least on Exynos4-based boards. In addition, simple
core power down from a cpuidle driver could, in case of CPU 0 could
result in calling functions that are specific to suspend and deeper idle
states.

This patch fixes the issue by moving those operations outside the CPU PM
notifier into suspend and AFTR code paths. This leads to a bit of code
duplication, but allows additional code simplification, so in the end
more code is removed than added.

Fixes: 85f9f90808 ("ARM: EXYNOS: Use the cpu_pm notifier for pm")
Cc: Kukjin Kim <kgene.kim@samsung.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Olof Johansson <olof@lixom.net>
Cc: arm@kernel.org
Signed-off-by: Tomasz Figa <t.figa@samsung.com>
[b.zolnierkie: ported patch over current changes]
[b.zolnierkie: fixed exynos_aftr_finisher() return value]
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
2014-08-09 08:24:36 -07:00
..
governors Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial 2014-08-06 21:03:53 -07:00
coupled.c
cpuidle-at91.c
cpuidle-big_little.c cpuidle: big.LITTLE: init driver for exynos5420 2014-07-19 03:35:57 +09:00
cpuidle-calxeda.c
cpuidle-clps711x.c
cpuidle-cps.c
cpuidle-exynos.c ARM: EXYNOS: Fix suspend/resume sequences 2014-08-09 08:24:36 -07:00
cpuidle-kirkwood.c
cpuidle-mvebu-v7.c cpuidle: mvebu: add Armada 38x support 2014-07-24 11:47:29 +00:00
cpuidle-powernv.c powerpc/cpuidle: Fix parsing of idle state flags from device-tree 2014-08-05 15:40:45 +10:00
cpuidle-pseries.c
cpuidle-ux500.c
cpuidle-zynq.c
cpuidle.c cpuidle: move idle traces to cpuidle_enter_state() 2014-07-09 15:45:23 +02:00
cpuidle.h
driver.c cpuidle: Remove time measurement in poll state 2014-07-29 01:37:57 +02:00
governor.c
Kconfig cpuidle: Remove manual selection of the multiple driver support 2014-07-29 01:35:29 +02:00
Kconfig.arm ARM: SoC platform changes for 3.17 2014-08-08 11:14:29 -07:00
Kconfig.mips
Kconfig.powerpc
Makefile cpuidle: mvebu: rename the driver from armada-370-xp to mvebu-v7 2014-07-24 11:47:11 +00:00
sysfs.c cpuidle: fix permission for driver name sysfs node 2014-07-19 21:43:28 +02:00