diff options
-rw-r--r-- | arch/i386/kernel/process.c | 4 | ||||
-rw-r--r-- | arch/i386/kernel/vm86.c | 2 | ||||
-rw-r--r-- | include/asm-i386/i387.h | 8 |
3 files changed, 7 insertions, 7 deletions
diff --git a/arch/i386/kernel/process.c b/arch/i386/kernel/process.c index 035928f3f6c1..5dd03757f50c 100644 --- a/arch/i386/kernel/process.c +++ b/arch/i386/kernel/process.c | |||
@@ -601,8 +601,8 @@ static inline void disable_tsc(struct task_struct *prev_p, | |||
601 | * gcc should eliminate the ->thread_info dereference if | 601 | * gcc should eliminate the ->thread_info dereference if |
602 | * has_secure_computing returns 0 at compile time (SECCOMP=n). | 602 | * has_secure_computing returns 0 at compile time (SECCOMP=n). |
603 | */ | 603 | */ |
604 | prev = prev_p->thread_info; | 604 | prev = task_thread_info(prev_p); |
605 | next = next_p->thread_info; | 605 | next = task_thread_info(next_p); |
606 | 606 | ||
607 | if (has_secure_computing(prev) || has_secure_computing(next)) { | 607 | if (has_secure_computing(prev) || has_secure_computing(next)) { |
608 | /* slow path here */ | 608 | /* slow path here */ |
diff --git a/arch/i386/kernel/vm86.c b/arch/i386/kernel/vm86.c index cbdb0afed76a..0c90ae54ddfa 100644 --- a/arch/i386/kernel/vm86.c +++ b/arch/i386/kernel/vm86.c | |||
@@ -311,7 +311,7 @@ static void do_sys_vm86(struct kernel_vm86_struct *info, struct task_struct *tsk | |||
311 | "movl %1,%%ebp\n\t" | 311 | "movl %1,%%ebp\n\t" |
312 | "jmp resume_userspace" | 312 | "jmp resume_userspace" |
313 | : /* no outputs */ | 313 | : /* no outputs */ |
314 | :"r" (&info->regs), "r" (tsk->thread_info) : "ax"); | 314 | :"r" (&info->regs), "r" (task_thread_info(tsk)) : "ax"); |
315 | /* we never return here */ | 315 | /* we never return here */ |
316 | } | 316 | } |
317 | 317 | ||
diff --git a/include/asm-i386/i387.h b/include/asm-i386/i387.h index 6747006743f9..152d0baa576a 100644 --- a/include/asm-i386/i387.h +++ b/include/asm-i386/i387.h | |||
@@ -49,19 +49,19 @@ static inline void __save_init_fpu( struct task_struct *tsk ) | |||
49 | X86_FEATURE_FXSR, | 49 | X86_FEATURE_FXSR, |
50 | "m" (tsk->thread.i387.fxsave) | 50 | "m" (tsk->thread.i387.fxsave) |
51 | :"memory"); | 51 | :"memory"); |
52 | tsk->thread_info->status &= ~TS_USEDFPU; | 52 | task_thread_info(tsk)->status &= ~TS_USEDFPU; |
53 | } | 53 | } |
54 | 54 | ||
55 | #define __unlazy_fpu( tsk ) do { \ | 55 | #define __unlazy_fpu( tsk ) do { \ |
56 | if ((tsk)->thread_info->status & TS_USEDFPU) \ | 56 | if (task_thread_info(tsk)->status & TS_USEDFPU) \ |
57 | save_init_fpu( tsk ); \ | 57 | save_init_fpu( tsk ); \ |
58 | } while (0) | 58 | } while (0) |
59 | 59 | ||
60 | #define __clear_fpu( tsk ) \ | 60 | #define __clear_fpu( tsk ) \ |
61 | do { \ | 61 | do { \ |
62 | if ((tsk)->thread_info->status & TS_USEDFPU) { \ | 62 | if (task_thread_info(tsk)->status & TS_USEDFPU) { \ |
63 | asm volatile("fnclex ; fwait"); \ | 63 | asm volatile("fnclex ; fwait"); \ |
64 | (tsk)->thread_info->status &= ~TS_USEDFPU; \ | 64 | task_thread_info(tsk)->status &= ~TS_USEDFPU; \ |
65 | stts(); \ | 65 | stts(); \ |
66 | } \ | 66 | } \ |
67 | } while (0) | 67 | } while (0) |