kernel-ark/arch/arm/mach-exynos
Bartlomiej Zolnierkiewicz 118f5c1d55 ARM: EXYNOS: cpuidle: fix AFTR mode check
The EXYNOS cpuidle driver code assumes that cpuidle core will handle
dev->state_count smaller than drv->state_count but currently this is
untrue (dev->state_count is used only for handling cpuidle state sysfs
entries and drv->state_count is used for all other cases) and will not
be fixed in the future as dev->state_count is planned to be removed.

Fix the issue by checking for the max supported idle state in AFTR
state's ->enter handler (exynos4_enter_lowpower()) and entering AFTR
mode only when cores other than CPU0 are offline.

Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: Kukjin Kim <kgene.kim@samsung.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2014-01-11 01:26:48 +01:00
..
include/mach ARM: Samsung: Remove the MIPI PHY setup code 2013-10-16 13:48:08 -07:00
common.c ACPI and power management updates for 3.13-rc1 2013-11-14 13:41:48 +09:00
common.h ACPI and power management updates for 3.13-rc1 2013-11-14 13:41:48 +09:00
cpuidle.c ARM: EXYNOS: cpuidle: fix AFTR mode check 2014-01-11 01:26:48 +01:00
exynos-smc.S ARM: EXYNOS: Add support for secure monitor calls 2013-04-09 01:52:06 +09:00
firmware.c ARM: EXYNOS: Remove check for device tree presence 2013-06-15 09:33:21 +09:00
headsmp.S arm: delete __cpuinit/__CPUINIT usage from all ARM users 2013-07-14 19:36:52 -04:00
hotplug.c ARM: cpu hotplug: remove majority of cache flushing from platforms 2013-04-18 20:08:04 +01:00
Kconfig ARM: EXYNOS: remove CONFIG_MACH_EXYNOS[4, 5]_DT config options 2013-10-21 06:35:47 +09:00
mach-exynos4-dt.c ACPI and power management updates for 3.13-rc1 2013-11-14 13:41:48 +09:00
mach-exynos5-dt.c ACPI and power management updates for 3.13-rc1 2013-11-14 13:41:48 +09:00
Makefile ARM: EXYNOS: remove CONFIG_MACH_EXYNOS[4, 5]_DT config options 2013-10-21 06:35:47 +09:00
Makefile.boot
platsmp.c arm: delete __cpuinit/__CPUINIT usage from all ARM users 2013-07-14 19:36:52 -04:00
pm_domains.c ARM: EXYNOS: Remove legacy power domain registration code 2013-06-15 09:33:21 +09:00
pm.c ARM: EXYNOS: skip pm support on exynos5440 2013-07-16 12:29:40 +09:00
pmu.c ARM: EXYNOS5: Fix kernel dump in AFTR idle mode 2013-05-09 13:22:22 -07:00
smc.h ARM: EXYNOS: Add support for secure monitor calls 2013-04-09 01:52:06 +09:00