Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

i387: fix sense of sanity check

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>

+1 -1
+1 -1
arch/x86/include/asm/i387.h
··· 404 404 */ 405 405 static inline void save_init_fpu(struct task_struct *tsk) 406 406 { 407 - WARN_ON_ONCE(task_thread_info(tsk)->status & TS_USEDFPU); 407 + WARN_ON_ONCE(!(task_thread_info(tsk)->status & TS_USEDFPU)); 408 408 preempt_disable(); 409 409 __save_init_fpu(tsk); 410 410 stts();