]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit80ab6f1e8c981b1b6604b2f22e36c917526235cd
treedfd8c2e909d614bc230aa87c0ea5742cf8510c57
parentcea20ca3f3181fc36788a15bc65d1062b96a0a6c
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