From 402b822a7074053d59c8c49ffb5e58b2d5028f54 Mon Sep 17 00:00:00 2001 From: Nicholas Piggin Date: Mon, 20 Dec 2021 22:22:48 +1000 Subject: hw/slw: Move P8 bits behind CONFIG_P8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This saves about 10kB from skiboot.lid.xz Reviewed-by: Dan Horák Signed-off-by: Nicholas Piggin Signed-off-by: Cédric Le Goater --- core/fast-reboot.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core') diff --git a/core/fast-reboot.c b/core/fast-reboot.c index 9f92525..2696348 100644 --- a/core/fast-reboot.c +++ b/core/fast-reboot.c @@ -272,6 +272,7 @@ static void cleanup_cpu_state(void) /* XXX Update the SLW copies ! Also dbl check HIDs etc... */ init_shared_sprs(); +#ifdef CONFIG_P8 if (proc_gen == proc_gen_p8) { /* If somebody was in fast_sleep, we may have a * workaround to undo @@ -287,6 +288,7 @@ static void cleanup_cpu_state(void) */ cleanup_local_tlb(); } +#endif /* And we might have lost TB sync */ chiptod_wakeup_resync(); -- cgit v1.1