Author: marius
Date: Sat Mar 19 19:39:05 2011
New Revision: 219782
URL: http://svn.freebsd.org/changeset/base/219782

Log:
  On Serengeti-class machines the OFW root isn't the parent of the CPU
  nodes.

Modified:
  head/sys/sparc64/sparc64/tick.c

Modified: head/sys/sparc64/sparc64/tick.c
==============================================================================
--- head/sys/sparc64/sparc64/tick.c     Sat Mar 19 19:37:53 2011        
(r219781)
+++ head/sys/sparc64/sparc64/tick.c     Sat Mar 19 19:39:05 2011        
(r219782)
@@ -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__);
                }
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to