Commit 048f1465 authored by Adrian Bunk's avatar Adrian Bunk Committed by Linus Torvalds

[PATCH] i386/kernel/i387.c: misc cleanups

This patch contains the following cleanups:
- make a needlessly global variable static
- #if 0 four unused global functions
Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent e1c56594
......@@ -24,7 +24,7 @@
#define HAVE_HWFP 1
#endif
unsigned long mxcsr_feature_mask = 0xffffffff;
static unsigned long mxcsr_feature_mask = 0xffffffff;
void mxcsr_feature_mask_init(void)
{
......@@ -177,6 +177,7 @@ unsigned short get_fpu_swd( struct task_struct *tsk )
}
}
#if 0
unsigned short get_fpu_twd( struct task_struct *tsk )
{
if ( cpu_has_fxsr ) {
......@@ -185,6 +186,7 @@ unsigned short get_fpu_twd( struct task_struct *tsk )
return (unsigned short)tsk->thread.i387.fsave.twd;
}
}
#endif /* 0 */
unsigned short get_fpu_mxcsr( struct task_struct *tsk )
{
......@@ -195,6 +197,8 @@ unsigned short get_fpu_mxcsr( struct task_struct *tsk )
}
}
#if 0
void set_fpu_cwd( struct task_struct *tsk, unsigned short cwd )
{
if ( cpu_has_fxsr ) {
......@@ -222,6 +226,8 @@ void set_fpu_twd( struct task_struct *tsk, unsigned short twd )
}
}
#endif /* 0 */
/*
* FXSR floating point environment conversions.
*/
......
......@@ -17,7 +17,6 @@
#include <asm/sigcontext.h>
#include <asm/user.h>
extern unsigned long mxcsr_feature_mask;
extern void mxcsr_feature_mask_init(void);
extern void init_fpu(struct task_struct *);
/*
......@@ -86,13 +85,8 @@ static inline void save_init_fpu( struct task_struct *tsk )
*/
extern unsigned short get_fpu_cwd( struct task_struct *tsk );
extern unsigned short get_fpu_swd( struct task_struct *tsk );
extern unsigned short get_fpu_twd( struct task_struct *tsk );
extern unsigned short get_fpu_mxcsr( struct task_struct *tsk );
extern void set_fpu_cwd( struct task_struct *tsk, unsigned short cwd );
extern void set_fpu_swd( struct task_struct *tsk, unsigned short swd );
extern void set_fpu_twd( struct task_struct *tsk, unsigned short twd );
/*
* Signal frame handlers...
*/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment