PERFORCE change 92578 for review

Kip Macy kmacy at FreeBSD.org
Tue Feb 28 23:48:00 PST 2006


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

Change 92578 by kmacy at kmacy_storage:sun4v_work on 2006/03/01 07:47:54

	add temporary workaround for clock being set too slow

Affected files ...

.. //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/tick.c#4 edit

Differences ...

==== //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/tick.c#4 (text+ko) ====

@@ -150,8 +150,14 @@
 	 * Avoid stopping of hardclock in terms of a lost tick interrupt
 	 * by ensuring that the tick period is at least TICK_GRACE ticks.
 	 */
+	printf("tick_freq=%ld hz=%d tick_increment=%ld\n",
+	       tick_freq, hz, tick_increment);
+#ifndef notyet 
+	/* XXX SUN4V_FIXME the simulator sets the clock to 5Mhz */
+	tick_increment = TICK_GRACE;
+#endif
 	if (tick_increment < TICK_GRACE)
-		panic("%s: HZ to high, decrease to at least %ld", __func__,
+		panic("%s: HZ too high, decrease to at least %ld", __func__,
 		    clock / TICK_GRACE);
 
 	/*
@@ -163,7 +169,6 @@
 	 * handled.
 	 */
 	tick_stop();
-
 	set_cputicker(tick_cputicks, tick_freq, 0);
 }
 


More information about the p4-projects mailing list