aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/power
diff options
context:
space:
mode:
authorPaul Kocialkowski <contact@paulk.fr>2014-05-02 20:25:28 +0200
committerPaul Kocialkowski <contact@paulk.fr>2014-05-02 20:25:28 +0200
commit4741b20879962d6838b0925fa0680891e2b7c86d (patch)
tree4ecfa4f4cc83d10045924ea461ca049f6eea482f /kernel/power
parent35da2a797979b11abfffd58348fafd9d1e6be02b (diff)
downloadkernel_goldelico_gta04-4741b20879962d6838b0925fa0680891e2b7c86d.zip
kernel_goldelico_gta04-4741b20879962d6838b0925fa0680891e2b7c86d.tar.gz
kernel_goldelico_gta04-4741b20879962d6838b0925fa0680891e2b7c86d.tar.bz2
Revert "PM / Sleep: Require CAP_BLOCK_SUSPEND to use wake_lock/wake_unlock"
This reverts commit 11388c87d2abca1f01975ced28ce9eacea239104.
Diffstat (limited to 'kernel/power')
-rw-r--r--kernel/power/wakelock.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/kernel/power/wakelock.c b/kernel/power/wakelock.c
index 8f50de3..c8fba33 100644
--- a/kernel/power/wakelock.c
+++ b/kernel/power/wakelock.c
@@ -9,7 +9,6 @@
* manipulate wakelocks on Android.
*/
-#include <linux/capability.h>
#include <linux/ctype.h>
#include <linux/device.h>
#include <linux/err.h>
@@ -189,9 +188,6 @@ int pm_wake_lock(const char *buf)
size_t len;
int ret = 0;
- if (!capable(CAP_BLOCK_SUSPEND))
- return -EPERM;
-
while (*str && !isspace(*str))
str++;
@@ -235,9 +231,6 @@ int pm_wake_unlock(const char *buf)
size_t len;
int ret = 0;
- if (!capable(CAP_BLOCK_SUSPEND))
- return -EPERM;
-
len = strlen(buf);
if (!len)
return -EINVAL;