Commit affe6637 authored by Joe Perches's avatar Joe Perches Committed by Ingo Molnar

include/asm-x86/i387.h: checkpatch cleanups - formatting only

Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent e574b023
...@@ -41,7 +41,7 @@ static inline void tolerant_fwait(void) ...@@ -41,7 +41,7 @@ static inline void tolerant_fwait(void)
{ {
asm volatile("1: fwait\n" asm volatile("1: fwait\n"
"2:\n" "2:\n"
_ASM_EXTABLE(1b,2b)); _ASM_EXTABLE(1b, 2b));
} }
static inline int restore_fpu_checking(struct i387_fxsave_struct *fx) static inline int restore_fpu_checking(struct i387_fxsave_struct *fx)
...@@ -54,7 +54,7 @@ static inline int restore_fpu_checking(struct i387_fxsave_struct *fx) ...@@ -54,7 +54,7 @@ static inline int restore_fpu_checking(struct i387_fxsave_struct *fx)
"3: movl $-1,%[err]\n" "3: movl $-1,%[err]\n"
" jmp 2b\n" " jmp 2b\n"
".previous\n" ".previous\n"
_ASM_EXTABLE(1b,3b) _ASM_EXTABLE(1b, 3b)
: [err] "=r" (err) : [err] "=r" (err)
#if 0 /* See comment in __save_init_fpu() below. */ #if 0 /* See comment in __save_init_fpu() below. */
: [fx] "r" (fx), "m" (*fx), "0" (0)); : [fx] "r" (fx), "m" (*fx), "0" (0));
...@@ -93,14 +93,15 @@ static inline int save_i387_checking(struct i387_fxsave_struct __user *fx) ...@@ -93,14 +93,15 @@ static inline int save_i387_checking(struct i387_fxsave_struct __user *fx)
"3: movl $-1,%[err]\n" "3: movl $-1,%[err]\n"
" jmp 2b\n" " jmp 2b\n"
".previous\n" ".previous\n"
_ASM_EXTABLE(1b,3b) _ASM_EXTABLE(1b, 3b)
: [err] "=r" (err), "=m" (*fx) : [err] "=r" (err), "=m" (*fx)
#if 0 /* See comment in __fxsave_clear() below. */ #if 0 /* See comment in __fxsave_clear() below. */
: [fx] "r" (fx), "0" (0)); : [fx] "r" (fx), "0" (0));
#else #else
: [fx] "cdaSDb" (fx), "0" (0)); : [fx] "cdaSDb" (fx), "0" (0));
#endif #endif
if (unlikely(err) && __clear_user(fx, sizeof(struct i387_fxsave_struct))) if (unlikely(err) &&
__clear_user(fx, sizeof(struct i387_fxsave_struct)))
err = -EFAULT; err = -EFAULT;
/* No need to clear here because the caller clears USED_MATH */ /* No need to clear here because the caller clears USED_MATH */
return err; return err;
...@@ -156,8 +157,10 @@ static inline int save_i387(struct _fpstate __user *buf) ...@@ -156,8 +157,10 @@ static inline int save_i387(struct _fpstate __user *buf)
return 0; return 0;
clear_used_math(); /* trigger finit */ clear_used_math(); /* trigger finit */
if (task_thread_info(tsk)->status & TS_USEDFPU) { if (task_thread_info(tsk)->status & TS_USEDFPU) {
err = save_i387_checking((struct i387_fxsave_struct __user *)buf); err = save_i387_checking((struct i387_fxsave_struct __user *)
if (err) return err; buf);
if (err)
return err;
task_thread_info(tsk)->status &= ~TS_USEDFPU; task_thread_info(tsk)->status &= ~TS_USEDFPU;
stts(); stts();
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment