diff options
author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2010-01-13 14:44:28 -0500 |
---|---|---|
committer | Martin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com> | 2010-01-13 14:44:44 -0500 |
commit | bebf023d415fd8984994a596aaa83cd0a3046d0b (patch) | |
tree | 5708a0d8ee1f48b982a847916bee0447a56b26a7 /arch/s390/kernel | |
parent | 6f50248ef0efa7453397eb53e41e8aa5df534492 (diff) |
[S390] remove superfluous TIF_USEDFPU bit
The TIF_USEDFPU bit is always 0 for s390 and it is not tested anywhere.
Remove the bit. At the same time remove the calls to clear_used_math()
as well. The PF_USED_MATH bit is never set for s390 either.
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/kernel')
-rw-r--r-- | arch/s390/kernel/process.c | 2 | ||||
-rw-r--r-- | arch/s390/kernel/setup.c | 6 |
2 files changed, 0 insertions, 8 deletions
diff --git a/arch/s390/kernel/process.c b/arch/s390/kernel/process.c index b98fe8e6e507..00b6d1d292f2 100644 --- a/arch/s390/kernel/process.c +++ b/arch/s390/kernel/process.c | |||
@@ -153,8 +153,6 @@ void exit_thread(void) | |||
153 | 153 | ||
154 | void flush_thread(void) | 154 | void flush_thread(void) |
155 | { | 155 | { |
156 | clear_used_math(); | ||
157 | clear_tsk_thread_flag(current, TIF_USEDFPU); | ||
158 | } | 156 | } |
159 | 157 | ||
160 | void release_thread(struct task_struct *dead_task) | 158 | void release_thread(struct task_struct *dead_task) |
diff --git a/arch/s390/kernel/setup.c b/arch/s390/kernel/setup.c index 0663287fa1b3..2148ad3d490d 100644 --- a/arch/s390/kernel/setup.c +++ b/arch/s390/kernel/setup.c | |||
@@ -124,12 +124,6 @@ void __cpuinit cpu_init(void) | |||
124 | */ | 124 | */ |
125 | get_cpu_id(&S390_lowcore.cpu_id); | 125 | get_cpu_id(&S390_lowcore.cpu_id); |
126 | 126 | ||
127 | /* | ||
128 | * Force FPU initialization: | ||
129 | */ | ||
130 | clear_thread_flag(TIF_USEDFPU); | ||
131 | clear_used_math(); | ||
132 | |||
133 | atomic_inc(&init_mm.mm_count); | 127 | atomic_inc(&init_mm.mm_count); |
134 | current->active_mm = &init_mm; | 128 | current->active_mm = &init_mm; |
135 | BUG_ON(current->mm); | 129 | BUG_ON(current->mm); |