drm/vmwgfx: Convert to new IDA API
authorMatthew Wilcox <willy@infradead.org>
Mon, 18 Jun 2018 20:00:05 +0000 (16:00 -0400)
committerMatthew Wilcox <willy@infradead.org>
Wed, 22 Aug 2018 03:54:19 +0000 (23:54 -0400)
commit4eb085e42fdee0314a89cd12bbd7ad67313d50dd
tree24eed249a13610a79cb7e69641e751e3f7bd56ea
parent485258b44854a6ea08bd32c3296729cc1c64dc30
drm/vmwgfx: Convert to new IDA API

Reorder allocation to avoid an awkward lock/unlock/lock sequence.
Simpler code due to being able to use ida_alloc_max(), even if we can't
eliminate the driver's spinlock.

Signed-off-by: Matthew Wilcox <willy@infradead.org>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_gmrid_manager.c