]> 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)
commitd733ad29c423d40a37e34c6b58cdb5544188839d
treedfd8c2e909d614bc230aa87c0ea5742cf8510c57
parentd51c28264126a0b5b0c6ef9c1f23e80f63422258
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