/* * Prototypes for functions that are shared between setup_(32|64|common).c * * Copyright 2016 Michael Ellerman, IBM Corporation. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version * 2 of the License, or (at your option) any later version. */ #ifndef __ARCH_POWERPC_KERNEL_SETUP_H #define __ARCH_POWERPC_KERNEL_SETUP_H void initialize_cache_info(void); void irqstack_early_init(void); #ifdef [31mCONFIG_PPC32[0m void setup_power_save(void); #else static inline void setup_power_save(void) { }; #endif #if defined([31mCONFIG_PPC64[0m) && defined([31mCONFIG_SMP[0m) void check_smt_enabled(void); #else static inline void check_smt_enabled(void) { }; #endif #if defined([31mCONFIG_PPC_BOOK3E[0m) && defined([31mCONFIG_SMP[0m) void setup_tlb_core_data(void); #else static inline void setup_tlb_core_data(void) { }; #endif #if defined([31mCONFIG_PPC_BOOK3E[0m) || defined([31mCONFIG_BOOKE[0m) || defined([31mCONFIG_40x[0m) void exc_lvl_early_init(void); #else static inline void exc_lvl_early_init(void) { }; #endif #ifdef [31mCONFIG_PPC64[0m void emergency_stack_init(void); #else static inline void emergency_stack_init(void) { }; #endif /* * Having this in kvm_ppc.h makes include dependencies too * tricky to solve for setup-common.c so have it here. */ #ifdef [31mCONFIG_KVM_BOOK3S_HV_POSSIBLE[0m void kvm_cma_reserve(void); #else static inline void kvm_cma_reserve(void) { }; #endif #endif /* __ARCH_POWERPC_KERNEL_SETUP_H */ |