summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2013-07-27 15:39:28 +0400
committerDave Airlie <airlied@redhat.com>2013-08-07 04:16:50 +0400
commitc700c67bae6698fbc6bd20e2ae5dc62ddd367b3b (patch)
tree33f02392a1c104ce6c42d745bef696cdf0cec3ac /samples
parent06e78edff18195f8e416e6961fea7d88118a5c63 (diff)
downloadlinux-c700c67bae6698fbc6bd20e2ae5dc62ddd367b3b.tar.xz
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 'samples')
0 files changed, 0 insertions, 0 deletions