Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Jul 2011 14:34:30 +0000 (UTC)
From:      Marius Strobl <marius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org
Subject:   svn commit: r224311 - stable/7/sys/sparc64/sparc64
Message-ID:  <201107251434.p6PEYUYv060393@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marius
Date: Mon Jul 25 14:34:30 2011
New Revision: 224311
URL: http://svn.freebsd.org/changeset/base/224311

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

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

Modified: stable/7/sys/sparc64/sparc64/tick.c
==============================================================================
--- stable/7/sys/sparc64/sparc64/tick.c	Mon Jul 25 14:33:37 2011	(r224310)
+++ stable/7/sys/sparc64/sparc64/tick.c	Mon Jul 25 14:34:30 2011	(r224311)
@@ -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__);
 		}



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