mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-02 00:24:12 +08:00
bd13ac95f9
Some function prototypes and body for Thermal Assist Units were not in sync. Update the function definition to match the existing function declaration found in `setup-common.c`, changing an `int` return type to a `u32` return type. Move the prototypes to a header file. Fix the following warnings, treated as error with W=1: arch/powerpc/kernel/tau_6xx.c:257:5: error: no previous prototype for ‘cpu_temp_both’ [-Werror=missing-prototypes] arch/powerpc/kernel/tau_6xx.c:262:5: error: no previous prototype for ‘cpu_temp’ [-Werror=missing-prototypes] arch/powerpc/kernel/tau_6xx.c:267:5: error: no previous prototype for ‘tau_interrupts’ [-Werror=missing-prototypes] Compile tested with CONFIG_TAU_INT. Suggested-by: Christophe Leroy <christophe.leroy@c-s.fr> Signed-off-by: Mathieu Malaterre <malat@debian.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
72 lines
1.8 KiB
C
72 lines
1.8 KiB
C
/*
|
|
* 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 CONFIG_PPC32
|
|
void setup_power_save(void);
|
|
#else
|
|
static inline void setup_power_save(void) { };
|
|
#endif
|
|
|
|
#if defined(CONFIG_PPC64) && defined(CONFIG_SMP)
|
|
void check_smt_enabled(void);
|
|
#else
|
|
static inline void check_smt_enabled(void) { };
|
|
#endif
|
|
|
|
#if defined(CONFIG_PPC_BOOK3E) && defined(CONFIG_SMP)
|
|
void setup_tlb_core_data(void);
|
|
#else
|
|
static inline void setup_tlb_core_data(void) { };
|
|
#endif
|
|
|
|
#if defined(CONFIG_PPC_BOOK3E) || defined(CONFIG_BOOKE) || defined(CONFIG_40x)
|
|
void exc_lvl_early_init(void);
|
|
#else
|
|
static inline void exc_lvl_early_init(void) { };
|
|
#endif
|
|
|
|
#ifdef CONFIG_PPC64
|
|
void emergency_stack_init(void);
|
|
#else
|
|
static inline void emergency_stack_init(void) { };
|
|
#endif
|
|
|
|
#ifdef CONFIG_PPC64
|
|
u64 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_POSSIBLE
|
|
void kvm_cma_reserve(void);
|
|
#else
|
|
static inline void kvm_cma_reserve(void) { };
|
|
#endif
|
|
|
|
#ifdef CONFIG_TAU
|
|
u32 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 */
|