mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-26 14:17:26 -04:00
Input: uinput - use completions instead of events and manual
wakeups in force feedback code. Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
This commit is contained in:
parent
152c12f568
commit
0048e6030d
2 changed files with 47 additions and 43 deletions
|
@ -42,8 +42,7 @@ struct uinput_request {
|
|||
int code; /* UI_FF_UPLOAD, UI_FF_ERASE */
|
||||
|
||||
int retval;
|
||||
wait_queue_head_t waitq;
|
||||
int completed;
|
||||
struct completion done;
|
||||
|
||||
union {
|
||||
int effect_id;
|
||||
|
@ -62,7 +61,7 @@ struct uinput_device {
|
|||
|
||||
struct uinput_request *requests[UINPUT_NUM_REQUESTS];
|
||||
wait_queue_head_t requests_waitq;
|
||||
struct semaphore requests_sem;
|
||||
spinlock_t requests_lock;
|
||||
};
|
||||
#endif /* __KERNEL__ */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue