Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Jul 2010 06:09:51 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r210158 - head/sys/mips/include
Message-ID:  <201007160609.o6G69p6v022058@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Fri Jul 16 06:09:51 2010
New Revision: 210158
URL: http://svn.freebsd.org/changeset/base/210158

Log:
  Use #define for get_cyclecount rather than inline function.
  mips_rd_count() isn't defined in userland, and cpu.h is included there
  in alias_scpt.h (maybe they don't need it in the first place).

Modified:
  head/sys/mips/include/cpu.h

Modified: head/sys/mips/include/cpu.h
==============================================================================
--- head/sys/mips/include/cpu.h	Fri Jul 16 04:27:38 2010	(r210157)
+++ head/sys/mips/include/cpu.h	Fri Jul 16 06:09:51 2010	(r210158)
@@ -78,11 +78,7 @@
 /*
  * A machine-independent interface to the CPU's counter.
  */
-static __inline uint64_t
-get_cyclecount(void)
-{
-	return (mips_rd_count());
-}
+#define get_cyclecount()	mips_rd_count()
 #endif				/* !_LOCORE */
 
 #if defined(_KERNEL) && !defined(_LOCORE)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201007160609.o6G69p6v022058>