Date: Thu, 9 Jul 2009 14:53:05 +0000 (UTC) From: Andriy Gapon <avg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org Subject: svn commit: r195493 - stable/7/sys/amd64/amd64 Message-ID: <200907091453.n69Er5iF088218@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: avg Date: Thu Jul 9 14:53:05 2009 New Revision: 195493 URL: http://svn.freebsd.org/changeset/base/195493 Log: dtrace/amd64: remove duplicate definition of dtrace_gethrtime function Primary (and enhanced) definition of this function is in sys/cddl/dev/dtrace/amd64/dtrace_subr.c. This is a direct commit to the branch, because this instance of the function was added to the branch in rev 182231, which claimed to be dtrace MFH, but in fact the code in question never existed in head. And does not exist now. Another reason for this de-duplication is that there is only one instance of this function for i386 arch. Briefly discussed with: jhb Silence from: jb Modified: stable/7/sys/amd64/amd64/tsc.c Modified: stable/7/sys/amd64/amd64/tsc.c ============================================================================== --- stable/7/sys/amd64/amd64/tsc.c Thu Jul 9 13:48:06 2009 (r195492) +++ stable/7/sys/amd64/amd64/tsc.c Thu Jul 9 14:53:05 2009 (r195493) @@ -234,18 +234,3 @@ tsc_get_timecount(struct timecounter *tc { return (rdtsc()); } - -#ifdef KDTRACE_HOOKS -/* - * DTrace needs a high resolution time function which can - * be called from a probe context and guaranteed not to have - * instrumented with probes itself. - * - * Returns nanoseconds since boot. - */ -uint64_t -dtrace_gethrtime() -{ - return (rdtsc() * (uint64_t) 1000000000 / tsc_freq); -} -#endif
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907091453.n69Er5iF088218>