ppc: Convert mmu context allocation to new IDA API
authorMatthew Wilcox <willy@infradead.org>
Mon, 18 Jun 2018 12:26:32 +0000 (08:26 -0400)
committerMatthew Wilcox <willy@infradead.org>
Wed, 22 Aug 2018 03:54:18 +0000 (23:54 -0400)
commitb3fa64170e21393b5790be89ab16cdfe1f5bddbc
tree0d7edeef4e67be73e0c5f66b2ea9ee5a577c0810
parent6e77cc471090a2f37802cb328bffe4ce56f4ce18
ppc: Convert mmu context allocation to new IDA API

ida_alloc_range is the perfect fit for this use case.  Eliminates
a custom spinlock, a call to ida_pre_get and a local check for the
allocated ID exceeding a maximum.

Signed-off-by: Matthew Wilcox <willy@infradead.org>
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
arch/powerpc/mm/mmu_context_book3s64.c