diff options
author | Paul Irofti <pirofti@cvs.openbsd.org> | 2019-08-26 12:41:48 +0000 |
---|---|---|
committer | Paul Irofti <pirofti@cvs.openbsd.org> | 2019-08-26 12:41:48 +0000 |
commit | bfa4e2eb1d301a1f45cb9b8fe4367c74682f268c (patch) | |
tree | b50a16304a859e2dce9343cde782cde464c89a2e | |
parent | b05b1f7b3039a77d0d6a9a67e42b6f844a05586e (diff) |
Remove rdtsc macro.
This is legacy code and was probably used instead of the desried
inline'd function in cpufunc.h.
OK deraadt@, kettenis@.
-rw-r--r-- | sys/arch/amd64/include/pctr.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/sys/arch/amd64/include/pctr.h b/sys/arch/amd64/include/pctr.h index 5a0a14b40dc..a08090aacfc 100644 --- a/sys/arch/amd64/include/pctr.h +++ b/sys/arch/amd64/include/pctr.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pctr.h,v 1.6 2019/03/25 18:48:12 guenther Exp $ */ +/* $OpenBSD: pctr.h,v 1.7 2019/08/26 12:41:47 pirofti Exp $ */ /* * Pentium performance counter driver for OpenBSD. @@ -51,13 +51,6 @@ struct pctrst { #define _PATH_PCTR "/dev/pctr" -#define rdtsc() \ -({ \ - u_int32_t hi, lo; \ - __asm volatile("rdtsc" : "=d" (hi), "=a" (lo)); \ - ((u_int64_t)hi << 32) | (u_int64_t)lo; \ -}) - #define rdpmc(pmc) \ ({ \ u_int32_t hi, lo; \ |