diff options
author | marius <marius@FreeBSD.org> | 2011-03-19 19:39:05 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2011-03-19 19:39:05 +0000 |
commit | 10a97db83b06141e1745cbef7bbeb6d8a301088e (patch) | |
tree | 430073c50104ab9082ed5f29bdf7afb843a0dd1d | |
parent | 1a5e6539ec9148ecdb5e07b63fb515e38c58dcd2 (diff) | |
download | FreeBSD-src-10a97db83b06141e1745cbef7bbeb6d8a301088e.zip FreeBSD-src-10a97db83b06141e1745cbef7bbeb6d8a301088e.tar.gz |
On Serengeti-class machines the OFW root isn't the parent of the CPU
nodes.
-rw-r--r-- | sys/sparc64/sparc64/tick.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sparc64/sparc64/tick.c b/sys/sparc64/sparc64/tick.c index 77590a4..921ffcb 100644 --- a/sys/sparc64/sparc64/tick.c +++ b/sys/sparc64/sparc64/tick.c @@ -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__); } |