aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/power
diff options
context:
space:
mode:
authorKalimochoAz <calimochoazucarado@gmail.com>2012-02-11 12:43:04 +0100
committerKalimochoAz <calimochoazucarado@gmail.com>2012-02-11 12:43:04 +0100
commit9d3edd09aa318c333016b6e13597674695395095 (patch)
tree86387cbabed29bed8d7109bd8064a6517e3fa0bc /kernel/power
parent04e99107b0db07334c670cc4b4fbd43cd007cd9a (diff)
parentd948ec4839368c01b6ba401e942abb42d040c8f7 (diff)
downloadkernel_samsung_crespo-9d3edd09aa318c333016b6e13597674695395095.zip
kernel_samsung_crespo-9d3edd09aa318c333016b6e13597674695395095.tar.gz
kernel_samsung_crespo-9d3edd09aa318c333016b6e13597674695395095.tar.bz2
Merge branch 'glados/deepidle'
Diffstat (limited to 'kernel/power')
-rw-r--r--kernel/power/suspend.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/kernel/power/suspend.c b/kernel/power/suspend.c
index 61e6347..a8bf2e6 100644
--- a/kernel/power/suspend.c
+++ b/kernel/power/suspend.c
@@ -315,3 +315,11 @@ int pm_suspend(suspend_state_t state)
return -EINVAL;
}
EXPORT_SYMBOL(pm_suspend);
+
+#ifdef CONFIG_CPU_DIDLE
+bool suspend_ongoing(void)
+{
+ return mutex_is_locked(&pm_mutex);
+}
+EXPORT_SYMBOL(suspend_ongoing);
+#endif