diff options
author | Michal Hocko <mhocko@suse.com> | 2017-05-17 09:55:08 +0300 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2017-05-18 18:10:23 +0300 |
commit | c4f51dc8729645f755ee59b5a2535b6f567b4b05 (patch) | |
tree | bd78f4e0f60ae8dd262131215b6c10e05e87e511 /drivers/gpu/drm | |
parent | b12f601fe5f0e0cf37c4efd00c41a033dff67664 (diff) | |
download | linux-c4f51dc8729645f755ee59b5a2535b6f567b4b05.tar.xz |
drm: replace drm_[cm]alloc* by kvmalloc alternatives
drm_[cm]alloc* has grown their own kvmalloc with vmalloc fallback
implementations. MM has grown kvmalloc* helpers in the meantime. Let's
use those because it a) reduces the code and b) MM has a better idea
how to implement fallbacks (e.g. do not vmalloc before kmalloc is tried
with __GFP_NORETRY).
drm_calloc_large needs to get __GFP_ZERO explicitly but it is the same
thing as kvmalloc_array in principle.
Signed-off-by: Michal Hocko <mhocko@suse.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20170517065509.18659-1-mhocko@kernel.org
Diffstat (limited to 'drivers/gpu/drm')
0 files changed, 0 insertions, 0 deletions