Skip to content

Commit bebf023

Browse files
Martin SchwidefskyMartin Schwidefsky
authored andcommitted
[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>
1 parent 6f50248 commit bebf023

3 files changed

Lines changed: 5 additions & 15 deletions

File tree

‎arch/s390/include/asm/thread_info.h‎

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,12 @@ static inline struct thread_info *current_thread_info(void)
9393
#define TIF_SYSCALL_AUDIT 9 /* syscall auditing active */
9494
#define TIF_SECCOMP 10 /* secure computing */
9595
#define TIF_SYSCALL_TRACEPOINT 11 /* syscall tracepoint instrumentation */
96-
#define TIF_USEDFPU 16 /* FPU was used by this task this quantum (SMP) */
97-
#define TIF_POLLING_NRFLAG 17 /* true if poll_idle() is polling
96+
#define TIF_POLLING_NRFLAG 16 /* true if poll_idle() is polling
9897
TIF_NEED_RESCHED */
99-
#define TIF_31BIT 18 /* 32bit process */
100-
#define TIF_MEMDIE 19
101-
#define TIF_RESTORE_SIGMASK 20 /* restore signal mask in do_signal() */
102-
#define TIF_FREEZE 21 /* thread is freezing for suspend */
98+
#define TIF_31BIT 17 /* 32bit process */
99+
#define TIF_MEMDIE 18
100+
#define TIF_RESTORE_SIGMASK 19 /* restore signal mask in do_signal() */
101+
#define TIF_FREEZE 20 /* thread is freezing for suspend */
103102

104103
#define _TIF_NOTIFY_RESUME (1<<TIF_NOTIFY_RESUME)
105104
#define _TIF_RESTORE_SIGMASK (1<<TIF_RESTORE_SIGMASK)
@@ -112,7 +111,6 @@ static inline struct thread_info *current_thread_info(void)
112111
#define _TIF_SYSCALL_AUDIT (1<<TIF_SYSCALL_AUDIT)
113112
#define _TIF_SECCOMP (1<<TIF_SECCOMP)
114113
#define _TIF_SYSCALL_TRACEPOINT (1<<TIF_SYSCALL_TRACEPOINT)
115-
#define _TIF_USEDFPU (1<<TIF_USEDFPU)
116114
#define _TIF_POLLING_NRFLAG (1<<TIF_POLLING_NRFLAG)
117115
#define _TIF_31BIT (1<<TIF_31BIT)
118116
#define _TIF_FREEZE (1<<TIF_FREEZE)

‎arch/s390/kernel/process.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,6 @@ void exit_thread(void)
153153

154154
void flush_thread(void)
155155
{
156-
clear_used_math();
157-
clear_tsk_thread_flag(current, TIF_USEDFPU);
158156
}
159157

160158
void release_thread(struct task_struct *dead_task)

‎arch/s390/kernel/setup.c‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,6 @@ void __cpuinit cpu_init(void)
124124
*/
125125
get_cpu_id(&S390_lowcore.cpu_id);
126126

127-
/*
128-
* Force FPU initialization:
129-
*/
130-
clear_thread_flag(TIF_USEDFPU);
131-
clear_used_math();
132-
133127
atomic_inc(&init_mm.mm_count);
134128
current->active_mm = &init_mm;
135129
BUG_ON(current->mm);

0 commit comments

Comments
 (0)