mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fix get_cyclecount. Wrap in ifdef _KERNEL.
This commit is contained in:
parent
8c7c272c5a
commit
58a822cfc2
1 changed files with 5 additions and 1 deletions
|
|
@ -72,13 +72,17 @@
|
|||
{ "wall_cmos_clock", CTLTYPE_INT }, \
|
||||
}
|
||||
|
||||
#ifdef _KERNEL
|
||||
|
||||
void fork_trampoline(void);
|
||||
|
||||
static __inline u_int64_t
|
||||
get_cyclecount(void)
|
||||
{
|
||||
|
||||
return (rd(tick));
|
||||
return (rdpr(tick));
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#endif /* !_MACHINE_CPU_H_ */
|
||||
|
|
|
|||
Loading…
Reference in a new issue