diff options
author | Kevin Hao <haokexin@gmail.com> | 2013-07-14 05:02:03 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2013-08-14 00:59:25 -0400 |
commit | 6ef94ff2e8e593de6de8d8d299a5fffaed35329c (patch) | |
tree | 948d1f1d084c3b4a7570a0563c9e2657eadeb1ff | |
parent | e05c0e81b0628808a7490c35d1803644a18b0405 (diff) |
powerpc: remove the unused function disable_kernel_fp()
The only using of function disable_kernel_fp() was already dropped
in the commit 5daf9071 (powerpc: merge align.c).
Signed-off-by: Kevin Hao <haokexin@gmail.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
-rw-r--r-- | arch/powerpc/include/asm/switch_to.h | 1 | ||||
-rw-r--r-- | arch/powerpc/kernel/misc_64.S | 13 |
2 files changed, 0 insertions, 14 deletions
diff --git a/arch/powerpc/include/asm/switch_to.h b/arch/powerpc/include/asm/switch_to.h index 49a13e0ef234..33e1cd823585 100644 --- a/arch/powerpc/include/asm/switch_to.h +++ b/arch/powerpc/include/asm/switch_to.h | |||
@@ -18,7 +18,6 @@ extern struct task_struct *_switch(struct thread_struct *prev, | |||
18 | 18 | ||
19 | extern void giveup_fpu(struct task_struct *); | 19 | extern void giveup_fpu(struct task_struct *); |
20 | extern void load_up_fpu(void); | 20 | extern void load_up_fpu(void); |
21 | extern void disable_kernel_fp(void); | ||
22 | extern void enable_kernel_fp(void); | 21 | extern void enable_kernel_fp(void); |
23 | extern void flush_fp_to_thread(struct task_struct *); | 22 | extern void flush_fp_to_thread(struct task_struct *); |
24 | extern void enable_kernel_altivec(void); | 23 | extern void enable_kernel_altivec(void); |
diff --git a/arch/powerpc/kernel/misc_64.S b/arch/powerpc/kernel/misc_64.S index 0db7cb4060c1..971d7e78aff2 100644 --- a/arch/powerpc/kernel/misc_64.S +++ b/arch/powerpc/kernel/misc_64.S | |||
@@ -449,19 +449,6 @@ _GLOBAL(scom970_write) | |||
449 | blr | 449 | blr |
450 | #endif /* CONFIG_CPU_FREQ_PMAC64 || CONFIG_CPU_FREQ_MAPLE */ | 450 | #endif /* CONFIG_CPU_FREQ_PMAC64 || CONFIG_CPU_FREQ_MAPLE */ |
451 | 451 | ||
452 | |||
453 | /* | ||
454 | * disable_kernel_fp() | ||
455 | * Disable the FPU. | ||
456 | */ | ||
457 | _GLOBAL(disable_kernel_fp) | ||
458 | mfmsr r3 | ||
459 | rldicl r0,r3,(63-MSR_FP_LG),1 | ||
460 | rldicl r3,r0,(MSR_FP_LG+1),0 | ||
461 | mtmsrd r3 /* disable use of fpu now */ | ||
462 | isync | ||
463 | blr | ||
464 | |||
465 | /* kexec_wait(phys_cpu) | 452 | /* kexec_wait(phys_cpu) |
466 | * | 453 | * |
467 | * wait for the flag to change, indicating this kernel is going away but | 454 | * wait for the flag to change, indicating this kernel is going away but |