]> git.baikalelectronics.ru Git - kernel.git/commit
i387: use 'restore_fpu_checking()' directly in task switching code
authorLinus Torvalds <torvalds@linux-foundation.org>
Sun, 19 Feb 2012 19:48:44 +0000 (11:48 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 20 Feb 2012 18:58:28 +0000 (10:58 -0800)
commitd2976e20609aa8854d8297a3faf654b853890684
treedfd8c2e909d614bc230aa87c0ea5742cf8510c57
parent8f839d3778ba0ca825231e50a106cda1d8855d12
i387: use 'restore_fpu_checking()' directly in task switching code

This inlines what is usually just a couple of instructions, but more
importantly it also fixes the theoretical error case (can that FPU
restore really ever fail? Maybe we should remove the checking).

We can't start sending signals from within the scheduler, we're much too
deep in the kernel and are holding the runqueue lock etc.  So don't
bother even trying.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/x86/include/asm/i387.h
arch/x86/kernel/traps.c