drm/udl: Inline memcmp() for RLE compression of xfer
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 18 Jan 2013 16:31:14 +0000 (16:31 +0000)
committerDave Airlie <airlied@redhat.com>
Fri, 8 Feb 2013 01:52:00 +0000 (11:52 +1000)
commite90a4ea534b110a43df87a05587c53cd78569467
tree0959edcc69f8e333ddc61ad6cd64d99dfeaa07e3
parentbcb39af4486be07e896fc374a2336bad3104ae0a
drm/udl: Inline memcmp() for RLE compression of xfer

As we use a variable length the compiler does not realise that it is a
fixed value of either 2 or 4 bytes. Instead of performing the inline
comparison itself, the compiler inserts a function call to the generic
memcmp routine which is optimised for long comparisons of variable
length. That turns out to be quite expensive...

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/udl/udl_transfer.c