From: David Herrmann Date: Sat, 27 Jul 2013 11:37:59 +0000 (+0200) Subject: drm/ttm: replace drm_mm_pre_get() by direct alloc X-Git-Tag: v3.12-rc1~136^2~133 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78af329a85bee7dd4671c67abfecde37b0057b10;p=pandora-kernel.git 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 Reviewed-by: Daniel Vetter Signed-off-by: Dave Airlie --- Reading git-diff-tree failed