summaryrefslogtreecommitdiff
path: root/include/linux/hidraw.h
diff options
context:
space:
mode:
authorHavard Skinnemoen <hskinnemoen@google.com>2012-04-26 22:16:00 +0400
committerJiri Kosina <jkosina@suse.cz>2012-04-27 18:03:40 +0400
commitd4f0e4daf0d867f80c78ca4f9ac03a562e229e72 (patch)
tree2a370bb114f8d4e1a66a69f7d3dcdcef3cc3b716 /include/linux/hidraw.h
parent9f1f463ae5d8597fe2b4ffc73051616c47ac1924 (diff)
downloadlinux-d4f0e4daf0d867f80c78ca4f9ac03a562e229e72.tar.xz
HID: hiddev: Use vzalloc to allocate hiddev_list
Everytime a HID device is opened, a new hiddev_list is allocated with kzalloc. This requires 64KB of physically contiguous memory, which could easily push a heavily loaded system over the edge. Allocating the same amount of memory with vmalloc shouldn't be nearly as demanding, so let's do that instead. The memory isn't used for DMA and doesn't look particularly performance sensitive, so this should be safe. Signed-off-by: Havard Skinnemoen <hskinnemoen@google.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'include/linux/hidraw.h')
0 files changed, 0 insertions, 0 deletions