]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
xHCI: refine td allocation
authorAndiry Xu <andiry.xu@amd.com>
Fri, 2 Sep 2011 18:05:57 +0000 (11:05 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 9 Sep 2011 22:52:54 +0000 (15:52 -0700)
commit2ffdea25f054439c31c24b248faa647685280571
treee15603e52db3cd197642fccc115bc58abb4185bb
parentfd984d242afbe13bd94c60b6754feda93be69bd7
xHCI: refine td allocation

In xhci_urb_enqueue(), allocate a block of memory for all the TDs instead
of allocating memory for each of them separately. This reduces the number
of kzalloc calling when an isochronous usb is submitted.

Signed-off-by: Andiry Xu <andiry.xu@amd.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/xhci-mem.c
drivers/usb/host/xhci.c