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>
This commit is contained in:

committed by
Michael Ellerman

parent
9bd9be006c
commit
c0abd0c745
@@ -45,14 +45,11 @@ void emergency_stack_init(void);
|
||||
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
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user