]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
i387: fix sense of sanity check
authorLinus Torvalds <torvalds@linux-foundation.org>
Wed, 15 Feb 2012 16:05:18 +0000 (08:05 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Mar 2012 00:34:23 +0000 (16:34 -0800)
commit09ffc93a8a1e8cf06547d20f5a0ddfe880179fe0
tree4dbd737d33eea3473aeacca9254f630a34a91c21
parent00717d1f238918b105ed561a466fcd4271206fb2
i387: fix sense of sanity check

commit c38e23456278e967f094b08247ffc3711b1029b2 upstream.

The check for save_init_fpu() (introduced in commit 5b1cbac37798: "i387:
make irq_fpu_usable() tests more robust") was the wrong way around, but
I hadn't noticed, because my "tests" were bogus: the FPU exceptions are
disabled by default, so even doing a divide by zero never actually
triggers this code at all unless you do extra work to enable them.

So if anybody did enable them, they'd get one spurious warning.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/include/asm/i387.h