svn commit: r195493 - stable/7/sys/amd64/amd64

Andriy Gapon avg at FreeBSD.org
Thu Jul 9 14:53:06 UTC 2009


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


More information about the svn-src-stable mailing list