diff options
author | Mike Chan <mike@android.com> | 2009-10-27 17:37:44 -0700 |
---|---|---|
committer | Bo Yan <byan@nvidia.com> | 2012-06-22 13:32:36 -0700 |
commit | 0a941e56a8c898bf9889c7ba90160924cbb88714 (patch) | |
tree | 801f01e8d249071ad56cb6e836b33fe7a3359b28 /drivers/input | |
parent | a9d8fb2bb8f84568be29414184ad8e8490d38a4e (diff) |
input: evdev: Use unique wakelock names
wakelock names are now contain evdev->name and pid
Change-Id: I66960ab2460ca46fcdbff34e53367879c105770e
Signed-off-by: Mike Chan <mike@android.com>
Reviewed-on: http://git-master/r/110419
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-by: Bo Yan <byan@nvidia.com>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/evdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/evdev.c b/drivers/input/evdev.c index 411cbc81fb18..4e79f1b00f8a 100644 --- a/drivers/input/evdev.c +++ b/drivers/input/evdev.c @@ -322,7 +322,7 @@ static int evdev_open(struct inode *inode, struct file *file) spin_lock_init(&client->buffer_lock); snprintf(client->name, sizeof(client->name), "%s-%d", dev_name(&evdev->dev), task_tgid_vnr(current)); - wake_lock_init(&client->wake_lock, WAKE_LOCK_SUSPEND, "evdev"); + wake_lock_init(&client->wake_lock, WAKE_LOCK_SUSPEND, client->name); client->evdev = evdev; evdev_attach_client(evdev, client); |