]> git.baikalelectronics.ru Git - kernel.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)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 15 Feb 2012 16:05:18 +0000 (08:05 -0800)
commit776b4b474be22c36bb15d71c9467901004aff96a
treeecd87e1fcd9c4e397d531081e45718cae132f7c1
parent849d748550f438c49f50bfd73d128a176e013170
i387: fix sense of sanity check

The check for save_init_fpu() (introduced in commit d0f1cadc50e7: "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>
arch/x86/include/asm/i387.h