05062d96a2
There've been reports of problems with CONFIG_PREEMPT=y and the high floating point partition. This is caused by the possibility of preemption and rescheduling on a different processor while saving or restioirng the high partition. The only places where the FPU state is touched are in ptrace, in switch_to(), and where handling a floating-point exception. In switch_to() preemption is off. So it's only in trap.c and ptrace.c that we need to prevent preemption. Here is a patch that adds commentary to make the conditions clear, and adds appropriate preempt_{en,dis}able() calls to make it so. In trap.c I use preempt_enable_no_resched(), as we're about to return to user space where the preemption flag will be checked anyway. Signed-off-by: Peter Chubb <peterc@gelato.unsw.edu.au> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> |
||
---|---|---|
.. | ||
sn | ||
a.out.h | ||
acpi-ext.h | ||
acpi.h | ||
agp.h | ||
asmmacro.h | ||
atomic.h | ||
bitops.h | ||
break.h | ||
bug.h | ||
bugs.h | ||
byteorder.h | ||
cache.h | ||
cacheflush.h | ||
checksum.h | ||
compat.h | ||
cpu.h | ||
cputime.h | ||
current.h | ||
cyclone.h | ||
delay.h | ||
div64.h | ||
dma-mapping.h | ||
dma.h | ||
elf.h | ||
errno.h | ||
fcntl.h | ||
fpswa.h | ||
fpu.h | ||
gcc_intrin.h | ||
hardirq.h | ||
hdreg.h | ||
hw_irq.h | ||
ia32.h | ||
ia64regs.h | ||
ide.h | ||
intel_intrin.h | ||
intrinsics.h | ||
io.h | ||
ioctl.h | ||
ioctls.h | ||
iosapic.h | ||
ipcbuf.h | ||
irq.h | ||
kmap_types.h | ||
kregs.h | ||
linkage.h | ||
local.h | ||
machvec_dig.h | ||
machvec_hpsim.h | ||
machvec_hpzx1_swiotlb.h | ||
machvec_hpzx1.h | ||
machvec_init.h | ||
machvec_sn2.h | ||
machvec.h | ||
mc146818rtc.h | ||
mca_asm.h | ||
mca.h | ||
meminit.h | ||
mman.h | ||
mmu_context.h | ||
mmu.h | ||
mmzone.h | ||
module.h | ||
msgbuf.h | ||
msi.h | ||
namei.h | ||
nodedata.h | ||
numa.h | ||
numnodes.h | ||
page.h | ||
pal.h | ||
param.h | ||
parport.h | ||
patch.h | ||
pci.h | ||
percpu.h | ||
perfmon_default_smpl.h | ||
perfmon.h | ||
pgalloc.h | ||
pgtable.h | ||
poll.h | ||
posix_types.h | ||
processor.h | ||
ptrace_offsets.h | ||
ptrace.h | ||
resource.h | ||
rse.h | ||
rwsem.h | ||
sal.h | ||
scatterlist.h | ||
sections.h | ||
segment.h | ||
semaphore.h | ||
sembuf.h | ||
serial.h | ||
setup.h | ||
shmbuf.h | ||
shmparam.h | ||
sigcontext.h | ||
siginfo.h | ||
signal.h | ||
smp.h | ||
socket.h | ||
sockios.h | ||
spinlock.h | ||
stat.h | ||
statfs.h | ||
string.h | ||
suspend.h | ||
system.h | ||
termbits.h | ||
termios.h | ||
thread_info.h | ||
timex.h | ||
tlb.h | ||
tlbflush.h | ||
topology.h | ||
types.h | ||
uaccess.h | ||
ucontext.h | ||
unaligned.h | ||
unistd.h | ||
unwind.h | ||
user.h | ||
ustack.h | ||
vga.h | ||
xor.h |