drm: virtio: use kmem_cache

Just use kmem_cache instead of rolling
our own, limited implementation.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1488377348-5006-1-git-send-email-kraxel@redhat.com
This commit is contained in:
Gerd Hoffmann
2017-03-01 15:09:08 +01:00
parent 2d856f94e6
commit f5985bf9ca
2 changed files with 11 additions and 50 deletions

View File

@@ -178,9 +178,7 @@ struct virtio_gpu_device {
struct virtio_gpu_queue ctrlq;
struct virtio_gpu_queue cursorq;
struct list_head free_vbufs;
spinlock_t free_vbufs_lock;
void *vbufs;
struct kmem_cache *vbufs;
bool vqs_ready;
struct idr resource_idr;