OSDN Git Service

powerpc/64: Move security code into security.c
authorMichael Ellerman <mpe@ellerman.id.au>
Fri, 26 Mar 2021 10:12:01 +0000 (21:12 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 8 Apr 2021 11:17:43 +0000 (21:17 +1000)
commitc6b4c9147f8b85d159f670d7bce71a93d16062a2
treeb0b3a48681fb2cda62c8d4aeae2e98280de026de
parentbd573a81312fd9d6520b1cc81a88fd29e670e1ff
powerpc/64: Move security code into security.c

When the original spectre/meltdown mitigations were merged we put them
in setup_64.c for lack of a better place.

Since then we created security.c for some of the other mitigation
related code. But it should all be in there.

This sort of code movement can cause trouble for backports, but
hopefully this code is relatively stable these days (famous last words).

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210326101201.1973552-1-mpe@ellerman.id.au
arch/powerpc/kernel/security.c
arch/powerpc/kernel/setup_64.c