Home
last modified time | relevance | path

Searched hist:e90a4ea5 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/gpu/drm/udl/
H A Dudl_transfer.ce90a4ea5 Fri Jan 18 10:31:14 CST 2013 Chris Wilson <chris@chris-wilson.co.uk> 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>
e90a4ea5 Fri Jan 18 10:31:14 CST 2013 Chris Wilson <chris@chris-wilson.co.uk> 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>