powerpc/64: move default SPR recording
authorNicholas Piggin <npiggin@gmail.com>
Tue, 13 Feb 2018 15:08:17 +0000 (01:08 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 30 Mar 2018 12:34:26 +0000 (23:34 +1100)
commitc0abd0c745bdabe027a8f013a866f385fba717b1
treeec65bc93c77077097d0d6326da4750dbd384cd05
parent9bd9be006c8ec0ccf7cb0422d35033af39d3f969
powerpc/64: move default SPR recording

Move this into the early setup code, and don't iterate over CPU masks.
We don't want to call into sysfs so early from setup, and a future patch
won't initialize CPU masks by the time this is called.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
[mpe: Fold in incremental fix from Nick for DSCR handling]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/setup.h
arch/powerpc/kernel/setup_64.c
arch/powerpc/kernel/sysfs.c