summaryrefslogtreecommitdiffstats
path: root/sys/sparc64
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2011-03-19 19:39:05 +0000
committermarius <marius@FreeBSD.org>2011-03-19 19:39:05 +0000
commit10a97db83b06141e1745cbef7bbeb6d8a301088e (patch)
tree430073c50104ab9082ed5f29bdf7afb843a0dd1d /sys/sparc64
parent1a5e6539ec9148ecdb5e07b63fb515e38c58dcd2 (diff)
downloadFreeBSD-src-10a97db83b06141e1745cbef7bbeb6d8a301088e.zip
FreeBSD-src-10a97db83b06141e1745cbef7bbeb6d8a301088e.tar.gz
On Serengeti-class machines the OFW root isn't the parent of the CPU
nodes.
Diffstat (limited to 'sys/sparc64')
-rw-r--r--sys/sparc64/sparc64/tick.c4
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__);
}
OpenPOWER on IntegriCloud