svn commit: r219998 - stable/8/sys/sparc64/sparc64

Marius Strobl marius at FreeBSD.org
Fri Mar 25 13:09:57 UTC 2011


Author: marius
Date: Fri Mar 25 13:09:57 2011
New Revision: 219998
URL: http://svn.freebsd.org/changeset/base/219998

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

Modified:
  stable/8/sys/sparc64/sparc64/tick.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)

Modified: stable/8/sys/sparc64/sparc64/tick.c
==============================================================================
--- stable/8/sys/sparc64/sparc64/tick.c	Fri Mar 25 13:08:19 2011	(r219997)
+++ stable/8/sys/sparc64/sparc64/tick.c	Fri Mar 25 13:09:57 2011	(r219998)
@@ -118,8 +118,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-stable-8 mailing list