Date: Sat, 19 Mar 2011 19:39:05 +0000 (UTC) From: Marius Strobl <marius@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r219782 - head/sys/sparc64/sparc64 Message-ID: <201103191939.p2JJd5H5032973@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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__); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201103191939.p2JJd5H5032973>