Staging: udlfb: pre-allocated urb list helpers
authorBernie Thompson <bernie@plugable.com>
Mon, 15 Feb 2010 14:45:55 +0000 (06:45 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 4 Mar 2010 00:42:59 +0000 (16:42 -0800)
commit4a4854dd2049ddc066a162a0f843dc2a78481060
treec4b6af4581bfe1024f53bd593267d364ab85d3d7
parentcc403dc67d10b895fec14b837fa2a6cb6ee6c8bd
Staging: udlfb: pre-allocated urb list helpers

Add functions to pre-allocate and free usb bulk urbs for core render path.

Udlfb currently allocates a single urb, guarded by a mutex, that is a key
bottleneck. Because udlfb sends so much data, preallocation is most efficient.

Functions will be used by new rendering functions in later patches.

Signed-off-by: Bernie Thompson <bernie@plugable.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/udlfb/udlfb.c
drivers/staging/udlfb/udlfb.h