aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/udl/udl_main.c
diff options
context:
space:
mode:
authorMikulas Patocka <[email protected]>2018-06-03 14:41:00 +0000
committerDave Airlie <[email protected]>2018-07-30 22:11:12 +0000
commit91ba11fb7d7ca0a3bbe8a512e65e666e2ec1e889 (patch)
tree65aca2b7e173c4cdc0658b2feb826b07277f8f50 /drivers/gpu/drm/udl/udl_main.c
parentudl-kms: fix crash due to uninitialized memory (diff)
downloadkernel-91ba11fb7d7ca0a3bbe8a512e65e666e2ec1e889.tar.gz
kernel-91ba11fb7d7ca0a3bbe8a512e65e666e2ec1e889.zip
udl-kms: avoid division
Division is slow, so it shouldn't be done by the pixel generating code. The driver supports only 2 or 4 bytes per pixel, so we can replace division with a shift. Signed-off-by: Mikulas Patocka <[email protected]> Cc: [email protected] Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/udl/udl_main.c')
0 files changed, 0 insertions, 0 deletions