]> git.hungrycats.org Git - linux/commit
Move "used FPU status" into new non-atomic thread_info->status field.
authorLinus Torvalds <torvalds@home.transmeta.com>
Mon, 10 Mar 2003 02:20:35 +0000 (18:20 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Mon, 10 Mar 2003 02:20:35 +0000 (18:20 -0800)
commit450b4497e37d77eb6ab44b9001c50e68de38afde
tree53843cc42acbb8d928b53afd4a453b8ce202d82f
parent36f0619922472bf8e5ecf83ac420114952a87bf3
Move "used FPU status" into new non-atomic thread_info->status field.

This allows us to avoid having to use atomic updates for the lazy FP
status setting, since we don't have to worry about other CPU's racing
on the fields.

Also, fix x86 FP state after fork() by making sure the FP is unlazied
_before_ we copy the state information. Otherwise, if a process did a
fork() while holding the FP state lazily in the registers, the child
would incorrectly unlazy bogus state.
26 files changed:
arch/i386/kernel/cpu/common.c
arch/i386/kernel/i387.c
arch/i386/kernel/process.c
arch/i386/kernel/traps.c
include/asm-alpha/processor.h
include/asm-arm/processor.h
include/asm-cris/processor.h
include/asm-i386/i387.h
include/asm-i386/processor.h
include/asm-i386/thread_info.h
include/asm-ia64/processor.h
include/asm-m68k/processor.h
include/asm-m68knommu/processor.h
include/asm-mips/processor.h
include/asm-mips64/processor.h
include/asm-parisc/processor.h
include/asm-ppc/processor.h
include/asm-ppc64/processor.h
include/asm-s390/processor.h
include/asm-s390x/processor.h
include/asm-sh/processor.h
include/asm-sparc/processor.h
include/asm-sparc64/processor.h
include/asm-v850/processor.h
include/asm-x86_64/processor.h
kernel/fork.c