x86/fpu: Use an explicit if/else in switch_fpu_prepare()
authorRik van Riel <riel@redhat.com>
Fri, 6 Feb 2015 20:02:03 +0000 (15:02 -0500)
committerBorislav Petkov <bp@suse.de>
Thu, 19 Feb 2015 10:15:54 +0000 (11:15 +0100)
commit1361ef29c7e49ae7cf37220c25fac1904b77f71a
tree1f46331d204c57730fbc58933aaea4e24cb3c342
parent33e03dedd759cc9396252d9641b25d01909a26bb
x86/fpu: Use an explicit if/else in switch_fpu_prepare()

Use an explicit if/else branch after __save_init_fpu(old) in
switch_fpu_prepare(). This makes substituting the assignment with a call
in task_disable_lazy_fpu_restore() in the next patch easier to review.

Signed-off-by: Rik van Riel <riel@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Link: http://lkml.kernel.org/r/1423252925-14451-7-git-send-email-riel@redhat.com
[ Space out stuff for more readability. ]
Signed-off-by: Borislav Petkov <bp@suse.de>
arch/x86/include/asm/fpu-internal.h