diff options
author | Arve Hjønnevåg <arve@android.com> | 2008-10-17 15:20:55 -0700 |
---|---|---|
committer | Arve Hjønnevåg <arve@android.com> | 2012-01-31 16:00:27 -0800 |
commit | 4dc43d7079bdae572212368e1d29abea0177c932 (patch) | |
tree | e90fe6499effc6032295bef0eeadd3b41294c28f /include/linux/input.h | |
parent | 7cc846069a8a9116d8c81526c459070eed0e3477 (diff) | |
download | kernel_samsung_tuna-4dc43d7079bdae572212368e1d29abea0177c932.zip kernel_samsung_tuna-4dc43d7079bdae572212368e1d29abea0177c932.tar.gz kernel_samsung_tuna-4dc43d7079bdae572212368e1d29abea0177c932.tar.bz2 |
Input: evdev - Add ioctl to block suspend while event queue is not empty.
Add an ioctl, EVIOCSSUSPENDBLOCK, to enable a wakelock that will block
suspend while the event queue is not empty. This allows userspace code to
process input events while the device appears to be asleep.
The current code holds the wakelock for up 5 seconds for every input
device and client. This can prevent suspend if sensor with a high data
rate is active, even when that sensor is not capable of waking the
device once it is suspended.
Change-Id: I624d66ef30a0b3abb543685c343382b8419b42b9
Signed-off-by: Arve Hjønnevåg <arve@android.com>
Diffstat (limited to 'include/linux/input.h')
-rw-r--r-- | include/linux/input.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/input.h b/include/linux/input.h index 771d6d8..a207923 100644 --- a/include/linux/input.h +++ b/include/linux/input.h @@ -129,6 +129,9 @@ struct input_keymap_entry { #define EVIOCGRAB _IOW('E', 0x90, int) /* Grab/Release device */ +#define EVIOCGSUSPENDBLOCK _IOR('E', 0x91, int) /* get suspend block enable */ +#define EVIOCSSUSPENDBLOCK _IOW('E', 0x91, int) /* set suspend block enable */ + /* * Device properties and quirks */ |