From 7e2552dc4a71f92c9b2241ecb4ba8f7e87a247d4 Mon Sep 17 00:00:00 2001 From: Matthew Wilcox Date: Tue, 30 Sep 2003 08:03:36 -0700 Subject: [PATCH] [PATCH] Remove ELF_CORE_SYNC ELF_CORE_SYNC and dump_smp_unlazy_fpu seem to have been introduced by Ingo around 2.5.43, but as far as I can tell, never used. --- arch/i386/kernel/i387.c | 10 ---------- arch/ppc64/kernel/process.c | 17 ----------------- arch/x86_64/kernel/i387.c | 9 --------- include/asm-i386/elf.h | 5 ----- include/asm-ppc64/elf.h | 5 ----- include/asm-x86_64/elf.h | 5 ----- 6 files changed, 51 deletions(-) diff --git a/arch/i386/kernel/i387.c b/arch/i386/kernel/i387.c index a7db0c08b2ea0..ab87b6804a4eb 100644 --- a/arch/i386/kernel/i387.c +++ b/arch/i386/kernel/i387.c @@ -549,13 +549,3 @@ int dump_task_extended_fpu(struct task_struct *tsk, struct user_fxsr_struct *fpu } return fpvalid; } - - -#ifdef CONFIG_SMP -void dump_smp_unlazy_fpu(void) -{ - unlazy_fpu(current); - return; -} -#endif - diff --git a/arch/ppc64/kernel/process.c b/arch/ppc64/kernel/process.c index 94c06a7ca9da3..4477ea92dceb8 100644 --- a/arch/ppc64/kernel/process.c +++ b/arch/ppc64/kernel/process.c @@ -70,23 +70,6 @@ enable_kernel_fp(void) #endif /* CONFIG_SMP */ } -#ifdef CONFIG_SMP -static void smp_unlazy_onefpu(void *arg) -{ - struct pt_regs *regs = current->thread.regs; - - if (!regs) - return; - if (regs->msr & MSR_FP) - giveup_fpu(current); -} - -void dump_smp_unlazy_fpu(void) -{ - smp_call_function(smp_unlazy_onefpu, NULL, 1, 1); -} -#endif - int dump_task_fpu(struct task_struct *tsk, elf_fpregset_t *fpregs) { struct pt_regs *regs = tsk->thread.regs; diff --git a/arch/x86_64/kernel/i387.c b/arch/x86_64/kernel/i387.c index 9d71651833d4d..dbe02ec1e3d3b 100644 --- a/arch/x86_64/kernel/i387.c +++ b/arch/x86_64/kernel/i387.c @@ -138,12 +138,3 @@ int dump_task_fpu(struct task_struct *tsk, struct user_i387_struct *fpu) } return fpvalid; } - -#ifdef CONFIG_SMP -void dump_smp_unlazy_fpu(void) -{ - unlazy_fpu(current); - return; -} -#endif - diff --git a/include/asm-i386/elf.h b/include/asm-i386/elf.h index 2a2ffd63cf9f2..2c2a91148d307 100644 --- a/include/asm-i386/elf.h +++ b/include/asm-i386/elf.h @@ -127,11 +127,6 @@ extern int dump_task_extended_fpu (struct task_struct *, struct user_fxsr_struct #define ELF_CORE_COPY_FPREGS(tsk, elf_fpregs) dump_task_fpu(tsk, elf_fpregs) #define ELF_CORE_COPY_XFPREGS(tsk, elf_xfpregs) dump_task_extended_fpu(tsk, elf_xfpregs) -#ifdef CONFIG_SMP -extern void dump_smp_unlazy_fpu(void); -#define ELF_CORE_SYNC dump_smp_unlazy_fpu -#endif - #define VSYSCALL_BASE (__fix_to_virt(FIX_VSYSCALL)) #define VSYSCALL_EHDR ((const struct elfhdr *) VSYSCALL_BASE) #define VSYSCALL_ENTRY ((unsigned long) &__kernel_vsyscall) diff --git a/include/asm-ppc64/elf.h b/include/asm-ppc64/elf.h index 61f5aa4aee964..1272c89498881 100644 --- a/include/asm-ppc64/elf.h +++ b/include/asm-ppc64/elf.h @@ -128,11 +128,6 @@ static inline int dump_task_regs(struct task_struct *tsk, extern int dump_task_fpu(struct task_struct *, elf_fpregset_t *); #define ELF_CORE_COPY_FPREGS(tsk, elf_fpregs) dump_task_fpu(tsk, elf_fpregs) -#ifdef CONFIG_SMP -extern void dump_smp_unlazy_fpu(void); -#define ELF_CORE_SYNC dump_smp_unlazy_fpu -#endif - #endif /* This yields a mask that user programs can use to figure out what diff --git a/include/asm-x86_64/elf.h b/include/asm-x86_64/elf.h index b28fd82180ef6..e72f10fef3fe9 100644 --- a/include/asm-x86_64/elf.h +++ b/include/asm-x86_64/elf.h @@ -150,11 +150,6 @@ extern int dump_task_fpu (struct task_struct *, elf_fpregset_t *); #define ELF_CORE_COPY_TASK_REGS(tsk, elf_regs) dump_task_regs(tsk, elf_regs) #define ELF_CORE_COPY_FPREGS(tsk, elf_fpregs) dump_task_fpu(tsk, elf_fpregs) -#ifdef CONFIG_SMP -extern void dump_smp_unlazy_fpu(void); -#define ELF_CORE_SYNC dump_smp_unlazy_fpu -#endif - #endif #endif -- 2.53.0