summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_mm.c
diff options
context:
space:
mode:
authorDavid Herrmann2013-07-27 13:37:59 +0200
committerDave Airlie2013-08-07 02:15:29 +0200
commit78af329a85bee7dd4671c67abfecde37b0057b10 (patch)
tree69dd90aad1c0809e902abd248e614170980a52ac /drivers/gpu/drm/drm_mm.c
parentdrm/agp: move AGP cleanup paths to drm_agpsupport.c (diff)
downloadkernel-qcow2-linux-78af329a85bee7dd4671c67abfecde37b0057b10.tar.gz
kernel-qcow2-linux-78af329a85bee7dd4671c67abfecde37b0057b10.tar.xz
kernel-qcow2-linux-78af329a85bee7dd4671c67abfecde37b0057b10.zip
drm/ttm: replace drm_mm_pre_get() by direct alloc
Instead of calling drm_mm_pre_get() in a row, we now preallocate the node and then use the atomic insertion functions. This has the exact same semantics and there is no reason to use the racy pre-allocations. Note that ttm_bo_man_get_node() does not run in atomic context. Nouveau already uses GFP_KERNEL alloc in nouveau/nouveau_ttm.c in nouveau_gart_manager_new(). So we can do the same in ttm_bo_man_get_node(). Signed-off-by: David Herrmann <dh.herrmann@gmail.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/drm_mm.c')
0 files changed, 0 insertions, 0 deletions