]> git.baikalelectronics.ru Git - kernel.git/commit
HID: Only dump input if someone is listening
authorHenrik Rydberg <rydberg@euromail.se>
Sat, 1 Sep 2012 19:47:11 +0000 (21:47 +0200)
committerJiri Kosina <jkosina@suse.cz>
Sun, 2 Sep 2012 07:26:46 +0000 (09:26 +0200)
commitd968eb738e092e798457774111bf6a646e9fdaae
tree6643c6edd934129b20a58a2fe1361a461a02f237
parent8a0eab710367cec00a93b02303a5da22d698c116
HID: Only dump input if someone is listening

Going through the motions of printing the debug message information
takes a long time; using the keyboard can lead to a 160 us irqsoff
latency. This patch skips hid_dump_input() when there are no open
handles, which brings latency down to 100 us.

Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-core.c