Skip to contentSkip to conversation

2.4 arch/ia64/kernel/smpboot.c

PATCH Applied Jes Sorensen 3 participants 3 messages Mar 26, 2003 – Apr 16, 2003

lore
Share & tools
lore
#0 lore raw

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.
 	 */
#1 lore raw
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
#2 lore raw
In reply to Jes Sorensen
Quoted 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.