From: Bartlomiej Zolnierkiewicz Date: Fri, 20 Dec 2013 18:47:23 +0000 (+0100) Subject: ARM: EXYNOS: cpuidle: fix AFTR mode check X-Git-Tag: v3.14-rc1~107^2~5^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=118f5c1d5518032eec773164779f17d6e9b31586;p=pandora-kernel.git 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 Signed-off-by: Kyungmin Park Acked-by: Daniel Lezcano Acked-by: Kukjin Kim Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed