Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Mar 2006 07:47:59 GMT
From:      Kip Macy <kmacy@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 92578 for review
Message-ID:  <200603010747.k217lxvJ007484@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=92578

Change 92578 by kmacy@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);
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200603010747.k217lxvJ007484>