powerpc/shared: Use static key to detect shared processor
authorSrikar Dronamraju <srikar@linux.vnet.ibm.com>
Thu, 5 Dec 2019 08:32:18 +0000 (14:02 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 13 Dec 2019 10:07:45 +0000 (21:07 +1100)
commit656c21d6af5d9279dd7b51ca7a4a71008127044b
tree4c68f89be4f658b948b21fb51cd92d6e119273af
parent14c73bd344da60abaf7da3ea2e7733ddda35bbac
powerpc/shared: Use static key to detect shared processor

With the static key shared processor available, is_shared_processor()
can return without having to query the lppaca structure.

Signed-off-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Acked-by: Phil Auld <pauld@redhat.com>
Acked-by: Waiman Long <longman@redhat.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20191213035036.6913-2-mpe@ellerman.id.au
arch/powerpc/include/asm/spinlock.h