OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ed84c3
)
HID: picoLCD: optimize for inactive debugfs
author
Bruno Prémont
<bonbons@linux-vserver.org>
Sun, 30 Sep 2012 20:04:19 +0000
(22:04 +0200)
committer
Jiri Kosina
<jkosina@suse.cz>
Mon, 1 Oct 2012 08:25:01 +0000
(10:25 +0200)
Matthieu CASTET adjusted picolcd_debug_out_report() to only operate when
there is an active listener on debugfs for events.
His change got lost while splitting hid_picolcd.c, restore it.
Signed-off-by: Bruno Prémont <bonbons@linux-vserver.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-picolcd_debugfs.c
patch
|
blob
|
history
diff --git
a/drivers/hid/hid-picolcd_debugfs.c
b/drivers/hid/hid-picolcd_debugfs.c
index
6ef03be
..
4809aa1
100644
(file)
--- a/
drivers/hid/hid-picolcd_debugfs.c
+++ b/
drivers/hid/hid-picolcd_debugfs.c
@@
-402,7
+402,7
@@
void picolcd_debug_out_report(struct picolcd_data *data,
#define BUFF_SZ 256
/* Avoid unnecessary overhead if debugfs is disabled */
- if (
!hdev->debug_events
)
+ if (
list_empty(&hdev->debug_list)
)
return;
buff = kmalloc(BUFF_SZ, GFP_ATOMIC);