diff options
author | KalimochoAz <calimochoazucarado@gmail.com> | 2012-02-11 12:43:04 +0100 |
---|---|---|
committer | KalimochoAz <calimochoazucarado@gmail.com> | 2012-02-11 12:43:04 +0100 |
commit | 9d3edd09aa318c333016b6e13597674695395095 (patch) | |
tree | 86387cbabed29bed8d7109bd8064a6517e3fa0bc /kernel/power | |
parent | 04e99107b0db07334c670cc4b4fbd43cd007cd9a (diff) | |
parent | d948ec4839368c01b6ba401e942abb42d040c8f7 (diff) | |
download | kernel_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.c | 8 |
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 |