]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
udl-kms: avoid division
authorMikulas Patocka <mpatocka@redhat.com>
Sun, 3 Jun 2018 14:41:00 +0000 (16:41 +0200)
committerDave Airlie <airlied@redhat.com>
Mon, 30 Jul 2018 22:11:12 +0000 (08:11 +1000)
commit91ba11fb7d7ca0a3bbe8a512e65e666e2ec1e889
tree65aca2b7e173c4cdc0658b2feb826b07277f8f50
parent09a00abe3a9941c2715ca83eb88172cd2f54d8fd
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 <mpatocka@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/udl/udl_drv.h
drivers/gpu/drm/udl/udl_fb.c
drivers/gpu/drm/udl/udl_transfer.c