svn commit: r224311 - stable/7/sys/sparc64/sparc64
Marius Strobl
marius at FreeBSD.org
Mon Jul 25 14:34:31 UTC 2011
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__);
}
More information about the svn-src-stable
mailing list