2.4 arch/ia64/kernel/smpboot.c
PATCH 1/1 2.4 arch/ia64/kernel/smpboot.c
Hi,
A small patch for 2.4 that stops the kernel from trying to syncrhonize ITC clocks between CPUs if we know that the ITC isn't synchronized across the backplane.
The patch is relative to 2.4.21-pre5-bjorn, but I believe it should apply directly to 2.5.x as well.
Cheers,
Jes
ia64/kernel/smpboot.c renamed from linux-2.4.20-021210/arch/ia64/kernel/smpboot.c +8 -5
@@ -334,12 +334,15 @@smp_setup_percpu_timer (); -/* -* Synchronize the ITC with the BP -*/ -Dprintk ("Going to syncup ITC with BP.\n" ); +if (!(sal_platform_features &IA64_SAL_PLATFORM_FEATURE_ITC_DRIFT )) { +/* +* Synchronize the ITC with the BP +*/ +Dprintk ("Going to syncup ITC with BP.\n" ); + +ia64_sync_itc (0 ); + } -ia64_sync_itc (0 );/* * Get our bogomips. */
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line · Jes Sorensen
Jes> A small patch for 2.4 that stops the kernel from trying to syncrhonize Jes> ITC clocks between CPUs if we know that the ITC isn't synchronized Jes> across the backplane.
Jes> The patch is relative to 2.4.21-pre5-bjorn, but I believe it should Jes> apply directly to 2.5.x as well.
Applied. In the future, please send patches that apply with patch -p1. Also, I think you'll want to add similar code to the gettimeofday() interpolation (and don't forget about the light-weight version of gettimeofday()).
Thanks,
--david
Bjorn Helgaas
AppliedQuoted 6 lines · Jes Sorensen
A small patch for 2.4 that stops the kernel from trying to syncrhonize ITC clocks between CPUs if we know that the ITC isn't synchronized across the backplane.
The patch is relative to 2.4.21-pre5-bjorn, but I believe it should apply directly to 2.5.x as well.
I applied this to 2.4.