diff options
| -rw-r--r-- | arch/s390/include/asm/thread_info.h | 12 | ||||
| -rw-r--r-- | arch/s390/kernel/process.c | 2 | ||||
| -rw-r--r-- | arch/s390/kernel/setup.c | 6 |
3 files changed, 5 insertions, 15 deletions
diff --git a/arch/s390/include/asm/thread_info.h b/arch/s390/include/asm/thread_info.h index 07eb61b2fb3a..66069e736842 100644 --- a/arch/s390/include/asm/thread_info.h +++ b/arch/s390/include/asm/thread_info.h | |||
| @@ -93,13 +93,12 @@ static inline struct thread_info *current_thread_info(void) | |||
| 93 | #define TIF_SYSCALL_AUDIT 9 /* syscall auditing active */ | 93 | #define TIF_SYSCALL_AUDIT 9 /* syscall auditing active */ |
| 94 | #define TIF_SECCOMP 10 /* secure computing */ | 94 | #define TIF_SECCOMP 10 /* secure computing */ |
| 95 | #define TIF_SYSCALL_TRACEPOINT 11 /* syscall tracepoint instrumentation */ | 95 | #define TIF_SYSCALL_TRACEPOINT 11 /* syscall tracepoint instrumentation */ |
| 96 | #define TIF_USEDFPU 16 /* FPU was used by this task this quantum (SMP) */ | 96 | #define TIF_POLLING_NRFLAG 16 /* true if poll_idle() is polling |
| 97 | #define TIF_POLLING_NRFLAG 17 /* true if poll_idle() is polling | ||
| 98 | TIF_NEED_RESCHED */ | 97 | TIF_NEED_RESCHED */ |
| 99 | #define TIF_31BIT 18 /* 32bit process */ | 98 | #define TIF_31BIT 17 /* 32bit process */ |
| 100 | #define TIF_MEMDIE 19 | 99 | #define TIF_MEMDIE 18 |
| 101 | #define TIF_RESTORE_SIGMASK 20 /* restore signal mask in do_signal() */ | 100 | #define TIF_RESTORE_SIGMASK 19 /* restore signal mask in do_signal() */ |
| 102 | #define TIF_FREEZE 21 /* thread is freezing for suspend */ | 101 | #define TIF_FREEZE 20 /* thread is freezing for suspend */ |
| 103 | 102 | ||
| 104 | #define _TIF_NOTIFY_RESUME (1<<TIF_NOTIFY_RESUME) | 103 | #define _TIF_NOTIFY_RESUME (1<<TIF_NOTIFY_RESUME) |
| 105 | #define _TIF_RESTORE_SIGMASK (1<<TIF_RESTORE_SIGMASK) | 104 | #define _TIF_RESTORE_SIGMASK (1<<TIF_RESTORE_SIGMASK) |
| @@ -112,7 +111,6 @@ static inline struct thread_info *current_thread_info(void) | |||
| 112 | #define _TIF_SYSCALL_AUDIT (1<<TIF_SYSCALL_AUDIT) | 111 | #define _TIF_SYSCALL_AUDIT (1<<TIF_SYSCALL_AUDIT) |
| 113 | #define _TIF_SECCOMP (1<<TIF_SECCOMP) | 112 | #define _TIF_SECCOMP (1<<TIF_SECCOMP) |
| 114 | #define _TIF_SYSCALL_TRACEPOINT (1<<TIF_SYSCALL_TRACEPOINT) | 113 | #define _TIF_SYSCALL_TRACEPOINT (1<<TIF_SYSCALL_TRACEPOINT) |
| 115 | #define _TIF_USEDFPU (1<<TIF_USEDFPU) | ||
| 116 | #define _TIF_POLLING_NRFLAG (1<<TIF_POLLING_NRFLAG) | 114 | #define _TIF_POLLING_NRFLAG (1<<TIF_POLLING_NRFLAG) |
| 117 | #define _TIF_31BIT (1<<TIF_31BIT) | 115 | #define _TIF_31BIT (1<<TIF_31BIT) |
| 118 | #define _TIF_FREEZE (1<<TIF_FREEZE) | 116 | #define _TIF_FREEZE (1<<TIF_FREEZE) |
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); |
