summaryrefslogtreecommitdiff
path: root/kernel/power/wakelock.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/power/wakelock.c')
-rw-r--r--kernel/power/wakelock.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/kernel/power/wakelock.c b/kernel/power/wakelock.c
index ee83a3c5047..4fd55503e00 100644
--- a/kernel/power/wakelock.c
+++ b/kernel/power/wakelock.c
@@ -18,8 +18,11 @@
#include <linux/rbtree.h>
#include <linux/slab.h>
+#define BAD_WAKELOCK "bluetooth_timer"
+
static DEFINE_MUTEX(wakelocks_lock);
+
struct wakelock {
char *name;
struct rb_node node;
@@ -194,6 +197,11 @@ int pm_wake_lock(const char *buf)
printk ("OLIO %s error return 1, lock %s\n", __FUNCTION__, buf);
return -EPERM;
}
+#elif 1 /* OLIO The bluetooth stack abuses this wake lock, so don't allow it to lock */
+ if (strncmp(buf, BAD_WAKELOCK, strlen(BAD_WAKELOCK)) == 0) {
+ printk ("OLIO %s error return 1, lock %s\n", __FUNCTION__, buf);
+ return -EPERM;
+ }
#endif
while (*str && !isspace(*str))