]> git.baikalelectronics.ru Git - kernel.git/commit
drm/virtio: Use IDAs more efficiently
authorMatthew Wilcox <willy@infradead.org>
Tue, 30 Oct 2018 16:53:52 +0000 (09:53 -0700)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 14 Nov 2018 11:50:34 +0000 (12:50 +0100)
commitfa50cc398226672a84bca6c9a5928338e163ecba
treef60b615b1fad9053c153c51b02a9401304767513
parent1bd46efc43fb19791ffd0933d144d61a8f6d48e0
drm/virtio: Use IDAs more efficiently

0-based IDAs are more efficient than any other base.  Convert the
1-based IDAs to be 0-based.

Signed-off-by: Matthew Wilcox <willy@infradead.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20181030165352.13065-2-willy@infradead.org
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
drivers/gpu/drm/virtio/virtgpu_kms.c
drivers/gpu/drm/virtio/virtgpu_object.c