Skip to content

Commit

Permalink
powerpc: remove the unused function disable_kernel_fp()
Browse files Browse the repository at this point in the history
The only using of function disable_kernel_fp() was already dropped
in the commit 5daf907 (powerpc: merge align.c).

Signed-off-by: Kevin Hao <[email protected]>
Signed-off-by: Benjamin Herrenschmidt <[email protected]>
  • Loading branch information
haokexin authored and ozbenh committed Aug 14, 2013
1 parent e05c0e8 commit 6ef94ff
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
1 change: 0 additions & 1 deletion arch/powerpc/include/asm/switch_to.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ extern struct task_struct *_switch(struct thread_struct *prev,

extern void giveup_fpu(struct task_struct *);
extern void load_up_fpu(void);
extern void disable_kernel_fp(void);
extern void enable_kernel_fp(void);
extern void flush_fp_to_thread(struct task_struct *);
extern void enable_kernel_altivec(void);
Expand Down
13 changes: 0 additions & 13 deletions arch/powerpc/kernel/misc_64.S
Original file line number Diff line number Diff line change
Expand Up @@ -449,19 +449,6 @@ _GLOBAL(scom970_write)
blr
#endif /* CONFIG_CPU_FREQ_PMAC64 || CONFIG_CPU_FREQ_MAPLE */


/*
* disable_kernel_fp()
* Disable the FPU.
*/
_GLOBAL(disable_kernel_fp)
mfmsr r3
rldicl r0,r3,(63-MSR_FP_LG),1
rldicl r3,r0,(MSR_FP_LG+1),0
mtmsrd r3 /* disable use of fpu now */
isync
blr

/* kexec_wait(phys_cpu)
*
* wait for the flag to change, indicating this kernel is going away but
Expand Down

0 comments on commit 6ef94ff

Please sign in to comment.