]> git.baikalelectronics.ru Git - kernel.git/commit
x86: force timer broadcast on late AMD C1E detection
authorThomas Gleixner <tglx@linutronix.de>
Sun, 14 Oct 2007 20:57:45 +0000 (22:57 +0200)
committerThomas Gleixner <tglx@inhelltoy.tec.linutronix.de>
Sun, 14 Oct 2007 20:57:45 +0000 (22:57 +0200)
commit469b3d436cedf51c6f3835a5001af8b430f9698d
treec3ac037a5be066b16d4c44efd432caee60b1540c
parent9cd051783e46513ed8a6a8c609340e0427aa2199
x86: force timer broadcast on late AMD C1E detection

The 64bit SMP bootup is slightly different to the 32bit one. It enables
the boot CPU local APIC timer before all CPUs are brought up. Some AMD C1E
systems have the C1E feature flag only set in the secondary CPU. Due to
the early enable of the boot CPU local APIC timer the APIC timer is
registered as a fully functional device. When we detect the wreckage during
the bringup of the secondary CPU, we need to force the boot CPU into
broadcast mode.

Check the C1E caused APIC timer disable, when the secondary APIC timer is
initialized. If the boot CPU APIC timer was registered as a functional
clock event device, then fix this up and utilize the
CLOCK_EVT_NOTIFY_BROADCAST_FORCE mechanism to force the already
registered boot CPU APIC timer into broadcast mode.

Tested by force injecting the failure mode.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/apic_64.c