]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit45021aa0101ff8172687c9f33423fd622cfefe7d
tree24eed249a13610a79cb7e69641e751e3f7bd56ea
parentcdaf9c45c8c50275bb1a1ccde48ff8876c46bce5
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