]> 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)
commitfc42f80a458dbc8199ba2f9465536854cfb665c4
tree12568cf37fd354fcff057329ffa7d4a88680e025
parentab8003f26f817445ac7e0b4ee9fe9dfc45e49bef
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