From: Rafael J. Wysocki Date: Mon, 26 May 2014 11:40:53 +0000 (+0200) Subject: PM / sleep: Use valid_state() for platform-dependent sleep states only X-Git-Tag: omap-for-v3.16/fixes-against-rc1~39^2^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=43e8317b0bba1d6eb85f38a4a233d82d7c20d732;p=pandora-kernel.git PM / sleep: Use valid_state() for platform-dependent sleep states only Use the observation that, for platform-dependent sleep states (PM_SUSPEND_STANDBY, PM_SUSPEND_MEM), a given state is either always supported or always unsupported and store that information in pm_states[] instead of calling valid_state() every time we need to check it. Also do not use valid_state() for PM_SUSPEND_FREEZE, which is always valid, and move the pm_test_level validity check for PM_SUSPEND_FREEZE directly into enter_state(). Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed