2 * Prototypes for functions that are shared between setup_(32|64|common).c
4 * Copyright 2016 Michael Ellerman, IBM Corporation.
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version
9 * 2 of the License, or (at your option) any later version.
12 #ifndef __ARCH_POWERPC_KERNEL_SETUP_H
13 #define __ARCH_POWERPC_KERNEL_SETUP_H
15 void initialize_cache_info(void);
16 void irqstack_early_init(void);
19 void setup_power_save(void);
21 static inline void setup_power_save(void) { };
24 #if defined(CONFIG_PPC64) && defined(CONFIG_SMP)
25 void check_smt_enabled(void);
27 static inline void check_smt_enabled(void) { };
30 #if defined(CONFIG_PPC_BOOK3E) && defined(CONFIG_SMP)
31 void setup_tlb_core_data(void);
33 static inline void setup_tlb_core_data(void) { };
36 #if defined(CONFIG_PPC_BOOK3E) || defined(CONFIG_BOOKE) || defined(CONFIG_40x)
37 void exc_lvl_early_init(void);
39 static inline void exc_lvl_early_init(void) { };
43 void emergency_stack_init(void);
45 static inline void emergency_stack_init(void) { };
49 * Having this in kvm_ppc.h makes include dependencies too
50 * tricky to solve for setup-common.c so have it here.
52 #ifdef CONFIG_KVM_BOOK3S_HV_POSSIBLE
53 void kvm_cma_reserve(void);
55 static inline void kvm_cma_reserve(void) { };
58 #endif /* __ARCH_POWERPC_KERNEL_SETUP_H */