Revert "PM / Sleep: Require CAP_BLOCK_SUSPEND to use wake_lock/wake_unlock"
authorAjay Nandakumar <anandakumarm@nvidia.com>
Thu, 25 Apr 2013 08:42:29 +0000 (14:12 +0530)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 14 Jan 2014 00:36:47 +0000 (16:36 -0800)
commitb77f9f883dea9d7c73687bb400d5f8ce89aea182
tree9914f6a63841be8c6d028053343cc863a248149b
parent3de283fd5a5a1db9ea3d97da3825cddcedc9a9bb
Revert "PM / Sleep: Require CAP_BLOCK_SUSPEND to use wake_lock/wake_unlock"

This reverts commit 11388c87d2abca1f01975ced28ce9eacea239104.

The issue is that no wake lock is held at the user space i.e by Power
Manager service.This is because the PowerManagerService fails to
acquire the Wakelock.In 3.8 the wakelock module in the kernel expects
the user process to have the capability of CAP_BLOCK_SUSPEND.Which the
powermangersevice does not have.

Bug 1274297
Bug 1384311

Change-Id: I3b696108d47278cf40abce8d5a9bd012f98f2925
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
(cherry picked from commit e8464e785027a15279a13e6e32cd1aecd22d5a00)
Reviewed-on: http://git-master/r/282698
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
kernel/power/wakelock.c