diff options
author | imp <imp@FreeBSD.org> | 2010-07-16 06:09:51 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2010-07-16 06:09:51 +0000 |
commit | 851a4b66d9b2b1645d719e9a9f91a9a459f2fa95 (patch) | |
tree | 320cde9377a9547f9e20d6e57dc7da7bcbd95136 /sys/mips | |
parent | 8670848171bbecae19d393e11c7fd6dd372fec21 (diff) | |
download | FreeBSD-src-851a4b66d9b2b1645d719e9a9f91a9a459f2fa95.zip FreeBSD-src-851a4b66d9b2b1645d719e9a9f91a9a459f2fa95.tar.gz |
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).
Diffstat (limited to 'sys/mips')
-rw-r--r-- | sys/mips/include/cpu.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/mips/include/cpu.h b/sys/mips/include/cpu.h index 91de2b7..f8445f3 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) |