From e0e27ec1977404897e119d3507a79ea9ccbf6aa5 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Fri, 16 Jul 2010 06:09:51 +0000 Subject: [PATCH] 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). --- sys/mips/include/cpu.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/sys/mips/include/cpu.h b/sys/mips/include/cpu.h index 91de2b7ad4e8..f8445f35b782 100644 --- a/sys/mips/include/cpu.h +++ b/sys/mips/include/cpu.h @@ -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)