diff options
author | 2021-06-03 09:29:03 +0000 | |
---|---|---|
committer | 2021-06-17 00:09:09 +1000 | |
commit | a56ab7c7290f5922363d1ee11bbafc4da2b9bf51 (patch) | |
tree | 34a9150325d6ce1a54a2d8a68b6ff72bd2d9d52f /arch/powerpc/kernel/head_fsl_booke.S | |
parent | powerpc/nohash: Refactor update of BDI2000 pointers in switch_mmu_context() (diff) | |
download | linux-a56ab7c7290f5922363d1ee11bbafc4da2b9bf51.tar.gz linux-a56ab7c7290f5922363d1ee11bbafc4da2b9bf51.tar.bz2 linux-a56ab7c7290f5922363d1ee11bbafc4da2b9bf51.zip |
powerpc/nohash: Convert set_context() to C
ppc8xx already has set_context() in C.
Other ones have it in assembly. The only thing it does is to
write the context id into SPRN_PID.
Do it in C.
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/a5d0759064f3831c6b88af49ef5d3b05ba1c4dad.1622712515.git.christophe.leroy@csgroup.eu
Diffstat (limited to 'arch/powerpc/kernel/head_fsl_booke.S')
-rw-r--r-- | arch/powerpc/kernel/head_fsl_booke.S | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/powerpc/kernel/head_fsl_booke.S b/arch/powerpc/kernel/head_fsl_booke.S index 590f34cc5bb2..ab718fd5e2a2 100644 --- a/arch/powerpc/kernel/head_fsl_booke.S +++ b/arch/powerpc/kernel/head_fsl_booke.S @@ -985,11 +985,6 @@ _GLOBAL(abort) mtspr SPRN_DBCR0,r13 isync -_GLOBAL(set_context) - mtspr SPRN_PID,r3 - isync /* Force context change */ - blr - #ifdef CONFIG_SMP /* When we get here, r24 needs to hold the CPU # */ .globl __secondary_start |