Input: evdev - use driver hint to compute size of event buffer
authorHenrik Rydberg <rydberg@euromail.se>
Thu, 10 Jun 2010 19:05:24 +0000 (12:05 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 23 Jun 2010 20:05:25 +0000 (13:05 -0700)
commit63a6404d8ae693e71ab27c4f9c4032aa29113e92
treef69345910b0eafc1149adb8e8926a131e1fbea3c
parentb58f7086d52c0ac6c879ee5aaf7c276e17768e5b
Input: evdev - use driver hint to compute size of event buffer

Some devices, in particular MT devices, produce a lot of data.  This
may lead to overflowing of the event queues in evdev driver, which
by default are fairly small. Let the drivers hint the average number
of events per packet generated by the device, and use that information
when computing the buffer size evdev should use for the device.

Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Acked-by: Chase Douglas <chase.douglas@canonical.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/evdev.c
include/linux/input.h