x86: make restore_fpu() use alternative assembler instructions
authorLinus Torvalds <torvalds@evo.osdl.org>
Fri, 22 Jul 2005 20:06:16 +0000 (16:06 -0400)
committerLinus Torvalds <torvalds@evo.osdl.org>
Fri, 22 Jul 2005 20:06:16 +0000 (16:06 -0400)
commit8ed1383fb7b6685968588141d5934e0e6715e954
tree7ee8476ec114dbab907e3acf4e8a9d0342bf6751
parentb339a18b81a1f6ca1455559594f5df872b9e59f4
x86: make restore_fpu() use alternative assembler instructions

It's really just a single instruction, conditional on whether the CPU
supports FXSR or not, so implement it as such instead of making it a
function that queries FXSR dynamically.

This means that the instruction just gets automatically rewritten to the
correct one at boot-time.
arch/i386/kernel/i387.c
include/asm-i386/i387.h