diff options
author | Sergey Senozhatsky <senozhatsky@chromium.org> | 2020-11-05 10:47:44 +0900 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2020-11-05 12:33:26 +0100 |
commit | ea86f3defd55f141a44146e66cbf8ffb683d60da (patch) | |
tree | a1cb12249233efb6d17c3338a05a4315454a38de /sound/arm | |
parent | f3f0e410c6a848c8f5b2715167eaa31c407cfb70 (diff) | |
download | linux-ea86f3defd55f141a44146e66cbf8ffb683d60da.tar.bz2 |
drm/virtio: use kvmalloc for large allocations
We observed that some of virtio_gpu_object_shmem_init() allocations
can be rather costly - order 6 - which can be difficult to fulfill
under memory pressure conditions. Switch to kvmalloc_array() in
virtio_gpu_object_shmem_init() and let the kernel vmalloc the entries
array.
Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20201105014744.1662226-1-senozhatsky@chromium.org
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'sound/arm')
0 files changed, 0 insertions, 0 deletions