Something went wrong. Try again.
Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768/* SPDX-License-Identifier: GPL-2.0-or-later *//* * Prototypes for functions that are shared between setup_(32|64|common).c * * Copyright 2016 Michael Ellerman, IBM Corporation. */
#ifndef __ARCH_POWERPC_KERNEL_SETUP_H#define __ARCH_POWERPC_KERNEL_SETUP_H
void initialize_cache_info(void);void irqstack_early_init(void);
#ifdef CONFIG_PPC32void setup_power_save(void);#elsestatic inline void setup_power_save(void) { }#endif
#if defined(CONFIG_PPC64) && defined(CONFIG_SMP)void check_smt_enabled(void);#elsestatic inline void check_smt_enabled(void) { }#endif
#if defined(CONFIG_PPC_BOOK3E_64) && defined(CONFIG_SMP)void setup_tlb_core_data(void);#elsestatic inline void setup_tlb_core_data(void) { }#endif
#ifdef CONFIG_BOOKEvoid exc_lvl_early_init(void);#elsestatic inline void exc_lvl_early_init(void) { }#endif
#if defined(CONFIG_PPC64) || defined(CONFIG_VMAP_STACK)void emergency_stack_init(void);#elsestatic inline void emergency_stack_init(void) { }#endif
#ifdef CONFIG_PPC64u64 ppc64_bolted_size(void);
/* Default SPR values from firmware/kexec */extern unsigned long spr_default_dscr;#endif
/* * Having this in kvm_ppc.h makes include dependencies too * tricky to solve for setup-common.c so have it here. */#ifdef CONFIG_KVM_BOOK3S_HV_POSSIBLEvoid kvm_cma_reserve(void);#elsestatic inline void kvm_cma_reserve(void) { }#endif
#ifdef CONFIG_TAUu32 cpu_temp(unsigned long cpu);u32 cpu_temp_both(unsigned long cpu);u32 tau_interrupts(unsigned long cpu);#endif /* CONFIG_TAU */
#endif /* __ARCH_POWERPC_KERNEL_SETUP_H */