]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/vas: Create cpu to vas id mapping
authorSukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Wed, 8 Nov 2017 02:23:49 +0000 (18:23 -0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 11 Nov 2017 22:03:08 +0000 (09:03 +1100)
commitca03258b6b338b392c778bed9c7dd56e6a513012
tree459dddb448e79195c0ec68c9a5788193ebe7772b
parent6fccac16c578c699bf0714a6c930b0ceb81305a0
powerpc/vas: Create cpu to vas id mapping

Create a cpu to vasid mapping so callers can specify -1 instead of
trying to find a VAS id.

Changelog[v2]
[Michael Ellerman] Use per-cpu variables to simplify code.

Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/vas.c