powerpc/64: Setup KUP on secondary CPUs
authorRussell Currey <ruscur@russell.cc>
Thu, 18 Apr 2019 06:51:21 +0000 (16:51 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 21 Apr 2019 13:05:59 +0000 (23:05 +1000)
commitb28c97505eb1a5265e367c398c3406be6ce5e313
tree3bab0cfac1668adade710ccdfe9c427338714787
parentde78a9c42a790011f179bc94a7da3f5d8721f4cc
powerpc/64: Setup KUP on secondary CPUs

Some platforms (i.e. Radix MMU) need per-CPU initialisation for KUP.

Any platforms that only want to do KUP initialisation once
globally can just check to see if they're running on the boot CPU, or
check if whatever setup they need has already been performed.

Note that this is only for 64-bit.

Signed-off-by: Russell Currey <ruscur@russell.cc>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/setup_64.c
arch/powerpc/mm/init-common.c