usb-gadget/tcm: Conversion to percpu_ida tag pre-allocation
authorNicholas Bellinger <nab@linux-iscsi.org>
Sat, 23 Jan 2016 09:05:05 +0000 (01:05 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 11 Mar 2016 05:48:14 +0000 (21:48 -0800)
commit71e7ae8e1fb2102bb373e6507c3f6540ead999f0
tree18d10db1ceeaf616833b74704e0da3b237a447ed
parent5f27edad953cfde6339f17ce461f57bc7060dc4f
usb-gadget/tcm: Conversion to percpu_ida tag pre-allocation

This patch converts usb-gadget target to use percpu_ida tag
pre-allocation for struct usbg_cmd descriptor, in order to
avoid fast-path struct usbg_cmd memory allocations.

Note by default this is currently hardcoded to 128.

Tested-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/usb/gadget/function/f_tcm.c
drivers/usb/gadget/function/tcm.h