input/evdev: Be less aggressive about sending SIGIO notifies
diff mbox

Message ID 1262639297-21857-1-git-send-email-ajax@redhat.com
State Accepted
Commit 30a589fde0162aa4dac7c69803aeee8fbe8d1b82
Headers show

Commit Message

Adam Jackson Jan. 4, 2010, 9:08 p.m. UTC
None

Patch
diff mbox

diff --git a/drivers/input/evdev.c b/drivers/input/evdev.c
index dee6706..258c639 100644
--- a/drivers/input/evdev.c
+++ b/drivers/input/evdev.c
@@ -59,7 +59,8 @@  static void evdev_pass_event(struct evdev_client *client,
 	client->head &= EVDEV_BUFFER_SIZE - 1;
 	spin_unlock(&client->buffer_lock);
 
-	kill_fasync(&client->fasync, SIGIO, POLL_IN);
+	if (event->type == EV_SYN)
+		kill_fasync(&client->fasync, SIGIO, POLL_IN);
 }
 
 /*