On Serengeti-class machines the OFW root isn't the parent of the CPU

nodes.
This commit is contained in:
Marius Strobl 2011-03-19 19:39:05 +00:00
parent ce4b2e2c63
commit 6d8b3c2f9f

View File

@ -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__);
}