]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/vas: Create take/drop pid and mm reference functions
authorHaren Myneni <haren@linux.ibm.com>
Thu, 17 Jun 2021 20:31:43 +0000 (13:31 -0700)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 20 Jun 2021 11:58:56 +0000 (21:58 +1000)
commit59fa7991cc1c0420e9c3ac8253a7eb71db101bf3
tree12568cf37fd354fcff057329ffa7d4a88680e025
parent27a393a54833808d7ca0cd7fd9b9c94b55ab61af
powerpc/vas: Create take/drop pid and mm reference functions

Take pid and mm references when each window opens and drops during
close. This functionality is needed for powerNV and pseries. So
this patch defines the existing code as functions in common book3s
platform vas-api.c

Signed-off-by: Haren Myneni <haren@linux.ibm.com>
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/2fa40df962250a737c804e58202924717b39e381.camel@linux.ibm.com
arch/powerpc/include/asm/vas.h
arch/powerpc/platforms/book3s/vas-api.c
arch/powerpc/platforms/powernv/vas-fault.c
arch/powerpc/platforms/powernv/vas-window.c
arch/powerpc/platforms/powernv/vas.h