summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorDavid Herrmann2013-07-27 13:39:28 +0200
committerDave Airlie2013-08-07 02:16:50 +0200
commitc700c67bae6698fbc6bd20e2ae5dc62ddd367b3b (patch)
tree33f02392a1c104ce6c42d745bef696cdf0cec3ac /usr
parentdrm/i915: pre-alloc instead of drm_mm search/get_block (diff)
downloadkernel-qcow2-linux-c700c67bae6698fbc6bd20e2ae5dc62ddd367b3b.tar.gz
kernel-qcow2-linux-c700c67bae6698fbc6bd20e2ae5dc62ddd367b3b.tar.xz
kernel-qcow2-linux-c700c67bae6698fbc6bd20e2ae5dc62ddd367b3b.zip
drm/mm: remove unused API
We used to pre-allocate drm_mm nodes and save them in a linked list for later usage so we always have spare ones in atomic contexts. However, this is really racy if multiple threads are in an atomic context at the same time and we don't have enough spare nodes. Moreover, all remaining users run in user-context and just lock drm_mm with a spinlock. So we can easily preallocate the node, take the spinlock and insert the node. This may have worked well with BKL in place, however, with today's infrastructure it really doesn't make any sense. Besides, most users can easily embed drm_mm_node into their objects so no allocation is needed at all. Thus, remove the old pre-alloc API and all the helpers that it provides. Drivers have already been converted and we should not use the old API for new code, anymore. Signed-off-by: David Herrmann <dh.herrmann@gmail.com> Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions