mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-17 09:43:59 +08:00
powerpc: Remove the empty giveup_fpu() function on 32bit kernel
Instead of implementing an empty giveup_fpu() function for each 32bit processor type, replace them with an unique empty inline function. Signed-off-by: Kevin Hao <haokexin@gmail.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:
parent
037f0eed57
commit
5f20be4478
@ -16,7 +16,6 @@ struct thread_struct;
|
|||||||
extern struct task_struct *_switch(struct thread_struct *prev,
|
extern struct task_struct *_switch(struct thread_struct *prev,
|
||||||
struct thread_struct *next);
|
struct thread_struct *next);
|
||||||
|
|
||||||
extern void giveup_fpu(struct task_struct *);
|
|
||||||
extern void load_up_fpu(void);
|
extern void load_up_fpu(void);
|
||||||
extern void enable_kernel_fp(void);
|
extern void enable_kernel_fp(void);
|
||||||
extern void enable_kernel_altivec(void);
|
extern void enable_kernel_altivec(void);
|
||||||
@ -38,8 +37,10 @@ static inline void discard_lazy_cpu_state(void)
|
|||||||
|
|
||||||
#ifdef CONFIG_PPC_FPU
|
#ifdef CONFIG_PPC_FPU
|
||||||
extern void flush_fp_to_thread(struct task_struct *);
|
extern void flush_fp_to_thread(struct task_struct *);
|
||||||
|
extern void giveup_fpu(struct task_struct *);
|
||||||
#else
|
#else
|
||||||
static inline void flush_fp_to_thread(struct task_struct *t) { }
|
static inline void flush_fp_to_thread(struct task_struct *t) { }
|
||||||
|
static inline void giveup_fpu(struct task_struct *t) { }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_ALTIVEC
|
#ifdef CONFIG_ALTIVEC
|
||||||
|
@ -822,14 +822,6 @@ finish_tlb_load:
|
|||||||
rfi /* Should sync shadow TLBs */
|
rfi /* Should sync shadow TLBs */
|
||||||
b . /* prevent prefetch past rfi */
|
b . /* prevent prefetch past rfi */
|
||||||
|
|
||||||
/* extern void giveup_fpu(struct task_struct *prev)
|
|
||||||
*
|
|
||||||
* The PowerPC 4xx family of processors do not have an FPU, so this just
|
|
||||||
* returns.
|
|
||||||
*/
|
|
||||||
_ENTRY(giveup_fpu)
|
|
||||||
blr
|
|
||||||
|
|
||||||
/* This is where the main kernel code starts.
|
/* This is where the main kernel code starts.
|
||||||
*/
|
*/
|
||||||
start_here:
|
start_here:
|
||||||
|
@ -784,16 +784,6 @@ _GLOBAL(__fixup_440A_mcheck)
|
|||||||
sync
|
sync
|
||||||
blr
|
blr
|
||||||
|
|
||||||
/*
|
|
||||||
* extern void giveup_fpu(struct task_struct *prev)
|
|
||||||
*
|
|
||||||
* The 44x core does not have an FPU.
|
|
||||||
*/
|
|
||||||
#ifndef CONFIG_PPC_FPU
|
|
||||||
_GLOBAL(giveup_fpu)
|
|
||||||
blr
|
|
||||||
#endif
|
|
||||||
|
|
||||||
_GLOBAL(set_context)
|
_GLOBAL(set_context)
|
||||||
|
|
||||||
#ifdef CONFIG_BDI_SWITCH
|
#ifdef CONFIG_BDI_SWITCH
|
||||||
|
@ -691,10 +691,6 @@ modified_instr:
|
|||||||
b 151b
|
b 151b
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
.globl giveup_fpu
|
|
||||||
giveup_fpu:
|
|
||||||
blr
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This is where the main kernel code starts.
|
* This is where the main kernel code starts.
|
||||||
*/
|
*/
|
||||||
|
@ -947,16 +947,6 @@ _GLOBAL(giveup_spe)
|
|||||||
blr
|
blr
|
||||||
#endif /* CONFIG_SPE */
|
#endif /* CONFIG_SPE */
|
||||||
|
|
||||||
/*
|
|
||||||
* extern void giveup_fpu(struct task_struct *prev)
|
|
||||||
*
|
|
||||||
* Not all FSL Book-E cores have an FPU
|
|
||||||
*/
|
|
||||||
#ifndef CONFIG_PPC_FPU
|
|
||||||
_GLOBAL(giveup_fpu)
|
|
||||||
blr
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* extern void abort(void)
|
* extern void abort(void)
|
||||||
*
|
*
|
||||||
|
@ -96,7 +96,9 @@ EXPORT_SYMBOL(pci_dram_offset);
|
|||||||
|
|
||||||
EXPORT_SYMBOL(start_thread);
|
EXPORT_SYMBOL(start_thread);
|
||||||
|
|
||||||
|
#ifdef CONFIG_PPC_FPU
|
||||||
EXPORT_SYMBOL(giveup_fpu);
|
EXPORT_SYMBOL(giveup_fpu);
|
||||||
|
#endif
|
||||||
#ifdef CONFIG_ALTIVEC
|
#ifdef CONFIG_ALTIVEC
|
||||||
EXPORT_SYMBOL(giveup_altivec);
|
EXPORT_SYMBOL(giveup_altivec);
|
||||||
#endif /* CONFIG_ALTIVEC */
|
#endif /* CONFIG_ALTIVEC */
|
||||||
|
Loading…
Reference in New Issue
Block a user