1
0
Files
linux/include/drm
Michal Hocko c4f51dc872 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
2017-05-18 17:10:23 +02:00
..
2017-03-24 09:36:06 +01:00
2017-03-14 14:38:33 +01:00
2017-03-14 14:38:34 +01:00
2017-04-04 20:47:54 +02:00
2016-06-21 22:10:55 +02:00
2017-03-24 09:36:06 +01:00
2017-03-09 16:18:02 +01:00