]> git.baikalelectronics.ru Git - kernel.git/commit
HID: hid-core: optimize in case of hidraw
authorMatthieu CASTET <matthieu.castet@parrot.com>
Thu, 28 Jun 2012 14:53:11 +0000 (16:53 +0200)
committerJiri Kosina <jkosina@suse.cz>
Fri, 20 Jul 2012 08:02:24 +0000 (10:02 +0200)
commit5abb1644bd6d5a93f29f4b498a88e0951343bc38
tree4153aa1c92ee53ab9cc9b5243e641fc9926b4366
parentb4370a4dbaa90d5c7b44cd7f897cd63797a8012b
HID: hid-core: optimize in case of hidraw

When using hidraw, hid buffer can be big and take lot's of
time to process (interrupt) kernel context.
Don't try to parse report if we are only interrested in hidraw.

Also don't prepare data for debug stuff if no debugfs file
are opened.

Signed-off-by: Matthieu CASTET <matthieu.castet@parrot.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-core.c
drivers/hid/hid-picolcd.c