Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Martin Schwidefsky and committed by
Martin Schwidefsky
bebf023d 6f50248e

+5 -15
+5 -7
arch/s390/include/asm/thread_info.h
··· 93 93 #define TIF_SYSCALL_AUDIT 9 /* syscall auditing active */ 94 94 #define TIF_SECCOMP 10 /* secure computing */ 95 95 #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 98 97 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 */ 103 102 104 103 #define _TIF_NOTIFY_RESUME (1<<TIF_NOTIFY_RESUME) 105 104 #define _TIF_RESTORE_SIGMASK (1<<TIF_RESTORE_SIGMASK) ··· 111 112 #define _TIF_SYSCALL_AUDIT (1<<TIF_SYSCALL_AUDIT) 112 113 #define _TIF_SECCOMP (1<<TIF_SECCOMP) 113 114 #define _TIF_SYSCALL_TRACEPOINT (1<<TIF_SYSCALL_TRACEPOINT) 114 - #define _TIF_USEDFPU (1<<TIF_USEDFPU) 115 115 #define _TIF_POLLING_NRFLAG (1<<TIF_POLLING_NRFLAG) 116 116 #define _TIF_31BIT (1<<TIF_31BIT) 117 117 #define _TIF_FREEZE (1<<TIF_FREEZE)
-2
arch/s390/kernel/process.c
··· 153 153 154 154 void flush_thread(void) 155 155 { 156 - clear_used_math(); 157 - clear_tsk_thread_flag(current, TIF_USEDFPU); 158 156 } 159 157 160 158 void release_thread(struct task_struct *dead_task)
-6
arch/s390/kernel/setup.c
··· 124 124 */ 125 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 127 atomic_inc(&init_mm.mm_count); 134 128 current->active_mm = &init_mm; 135 129 BUG_ON(current->mm);