On Serengeti-class machines the OFW root isn't the parent of the CPU
nodes.
This commit is contained in:
parent
ce4b2e2c63
commit
6d8b3c2f9f
@ -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__);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user