mirror of
https://github.com/matrix-construct/construct
synced 2025-01-13 08:23:56 +01:00
ircd::prof: Fix missing #ifdef for fences.
This commit is contained in:
parent
55da546de0
commit
f6f8c2494f
1 changed files with 6 additions and 2 deletions
|
@ -754,8 +754,12 @@ IRCD_PROF_ALWAYS_OPTIMIZE
|
|||
ircd::prof::event::enable(const long &arg)
|
||||
{
|
||||
const int &fd(this->fd);
|
||||
__builtin_ia32_mfence();
|
||||
__builtin_ia32_lfence();
|
||||
|
||||
#if defined(__x86_64__)
|
||||
__builtin_ia32_mfence();
|
||||
__builtin_ia32_lfence();
|
||||
#endif
|
||||
|
||||
::ioctl(fd, PERF_EVENT_IOC_ENABLE, arg);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue