svn commit: r219782 - head/sys/sparc64/sparc64

Marius Strobl marius at FreeBSD.org
Sat Mar 19 19:39:06 UTC 2011


Author: marius
Date: Sat Mar 19 19:39:05 2011
New Revision: 219782
URL: http://svn.freebsd.org/changeset/base/219782

Log:
  On Serengeti-class machines the OFW root isn't the parent of the CPU
  nodes.

Modified:
  head/sys/sparc64/sparc64/tick.c

Modified: head/sys/sparc64/sparc64/tick.c
==============================================================================
--- head/sys/sparc64/sparc64/tick.c	Sat Mar 19 19:37:53 2011	(r219781)
+++ head/sys/sparc64/sparc64/tick.c	Sat Mar 19 19:39:05 2011	(r219782)
@@ -158,8 +158,8 @@ cpu_initclocks(void)
 	sclock = 0;
 	if (PCPU_GET(impl) == CPU_IMPL_SPARC64V ||
 	    PCPU_GET(impl) >= CPU_IMPL_ULTRASPARCIII) {
-		if (OF_getprop(OF_parent(PCPU_GET(node)), "stick-frequency",
-		    &sclock, sizeof(sclock)) == -1) {
+		if (OF_getprop(OF_peer(0), "stick-frequency", &sclock,
+		    sizeof(sclock)) == -1) {
 			panic("%s: could not determine STICK frequency",
 			    __func__);
 		}


More information about the svn-src-all mailing list