PERFORCE change 38847 for review

Peter Wemm peter at FreeBSD.org
Mon Sep 29 23:47:11 PDT 2003


http://perforce.freebsd.org/chv.cgi?CH=38847

Change 38847 by peter at peter_hammer on 2003/09/29 23:46:48

	add SMP hooks into clock.c

Affected files ...

.. //depot/projects/hammer/sys/amd64/isa/clock.c#10 edit

Differences ...

==== //depot/projects/hammer/sys/amd64/isa/clock.c#10 (text+ko) ====

@@ -180,6 +180,10 @@
 		mtx_unlock_spin(&clock_lock);
 	}
 	timer_func(frame);
+#ifdef SMP
+	if (timer_func == hardclock)
+		forward_hardclock();
+#endif
 	switch (timer0_state) {
 
 	case RELEASED:
@@ -190,6 +194,9 @@
 		    >= hardclock_max_count) {
 			timer0_prescaler_count -= hardclock_max_count;
 			hardclock(frame);
+#ifdef SMP
+			forward_hardclock();
+#endif
 		}
 		break;
 
@@ -222,6 +229,9 @@
 			timer_func = hardclock;
 			timer0_state = RELEASED;
 			hardclock(frame);
+#ifdef SMP
+			forward_hardclock();
+#endif
 		}
 		break;
 	}
@@ -346,6 +356,9 @@
 		}
 		if (pscnt == psdiv)
 			statclock(frame);
+#ifdef SMP
+			forward_statclock();
+#endif
 	}
 }
 


More information about the p4-projects mailing list