kernel-ark/arch/x86_64/kernel
Eric W. Biederman 3d483f4757 [PATCH] Fix sync_tsc hang
sync_tsc was using smp_call_function to ask the boot processor to report
it's tsc value.  smp_call_function performs an IPI_send_allbutself which is
a broadcast ipi.  There is a window during processor startup during which
the target cpu has started and before it has initialized it's interrupt
vectors so it can properly process an interrupt.  Receveing an interrupt
during that window will triple fault the cpu and do other nasty things.

Why cli does not protect us from that is beyond me.

The simple fix is to match ia64 and provide a smp_call_function_single.
Which avoids the broadcast and is more efficient.

This certainly fixes the problem of getting stuck on boot which was
very easy to trigger on my SMP Hyperthreaded Xeon, and I think
it fixes it for the right reasons.

Minor changes by AK

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-07-29 15:01:13 -07:00
..
acpi
cpufreq
aperture.c
apic.c
asm-offsets.c
crash.c
e820.c
early_printk.c
entry.S [PATCH] x86_64: Switch to the interrupt stack when running a softirq in local_bh_enable() 2005-07-28 21:46:02 -07:00
genapic_cluster.c
genapic_flat.c [PATCH] x86_64: Support more than 8 cores on AMD systems 2005-07-28 21:46:01 -07:00
genapic.c [PATCH] x86_64: Support more than 8 cores on AMD systems 2005-07-28 21:46:01 -07:00
head64.c
head.S [PATCH] x86_64: Small assembly improvements 2005-07-28 21:46:02 -07:00
i387.c
i8259.c
init_task.c
io_apic.c
ioport.c
irq.c [PATCH] x86_64: Switch to the interrupt stack when running a softirq in local_bh_enable() 2005-07-28 21:46:02 -07:00
kprobes.c
ldt.c
machine_kexec.c [PATCH] x86_64 machine_kexec: Use standard pagetable helpers 2005-07-29 13:12:49 -07:00
Makefile
mce_intel.c
mce.c [PATCH] x86_64: Create per CPU machine check sysfs directories 2005-07-28 21:46:00 -07:00
module.c
mpparse.c [PATCH] x86_64: Move cpu_present/possible_map parsing earlier 2005-07-28 21:45:58 -07:00
msr.c
nmi.c
pci-dma.c
pci-gart.c
pci-nommu.c
pmtimer.c
process.c
ptrace.c
reboot.c
relocate_kernel.S
semaphore.c
setup64.c [PATCH] x86_64: Some cleanup in setup64.c 2005-07-28 21:45:58 -07:00
setup.c [PATCH] x86_64: Fix SRAT handling on non dual core systems 2005-07-28 21:46:02 -07:00
signal.c
smp.c [PATCH] Fix sync_tsc hang 2005-07-29 15:01:13 -07:00
smpboot.c [PATCH] Fix sync_tsc hang 2005-07-29 15:01:13 -07:00
suspend_asm.S
suspend.c
sys_x86_64.c
syscall.c
time.c
trampoline.S
traps.c [PATCH] x86_64: cpu hotplug changes kills nmi watchdog 2005-07-28 21:45:57 -07:00
vmlinux.lds.S
vsyscall.c
x8664_ksyms.c