summaryrefslogtreecommitdiff
path: root/arch/powerpc/kernel/setup.h
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2018-02-14 01:08:17 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2018-03-30 23:34:26 +1100
commitc0abd0c745bdabe027a8f013a866f385fba717b1 (patch)
treeec65bc93c77077097d0d6326da4750dbd384cd05 /arch/powerpc/kernel/setup.h
parent9bd9be006c8ec0ccf7cb0422d35033af39d3f969 (diff)
downloadlwn-c0abd0c745bdabe027a8f013a866f385fba717b1.tar.gz
lwn-c0abd0c745bdabe027a8f013a866f385fba717b1.zip
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>
Diffstat (limited to 'arch/powerpc/kernel/setup.h')
-rw-r--r--arch/powerpc/kernel/setup.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/arch/powerpc/kernel/setup.h b/arch/powerpc/kernel/setup.h
index 3fc11e30308f..d144df54ad40 100644
--- a/arch/powerpc/kernel/setup.h
+++ b/arch/powerpc/kernel/setup.h
@@ -46,13 +46,10 @@ static inline void emergency_stack_init(void) { };
#endif
#ifdef CONFIG_PPC64
-void record_spr_defaults(void);
-#else
-static inline void record_spr_defaults(void) { };
-#endif
-
-#ifdef CONFIG_PPC64
u64 ppc64_bolted_size(void);
+
+/* Default SPR values from firmware/kexec */
+extern unsigned long spr_default_dscr;
#endif
/*