1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-19 10:53:58 +00:00

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).
This commit is contained in:
Warner Losh 2010-07-16 06:09:51 +00:00
parent 69496408a5
commit e0e27ec197
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=210158

View File

@ -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)