mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-26 00:51:02 +07:00
i386: remove unused rdtsc() macro
All users to the two-part rdtsc() macro have already switched to using rdtscl() or rdtscll(). Remove the now-obsolete macro. Signed-off-by: H. Peter Anvin <hpa@zytor.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
21c42bd8db
commit
29bd443377
@ -121,13 +121,6 @@ static inline void wrmsrl (unsigned long msr, unsigned long long val)
|
||||
__err; \
|
||||
})
|
||||
|
||||
#define rdtsc(low,high) \
|
||||
do { \
|
||||
u64 _l = native_read_tsc(); \
|
||||
(low) = (u32)_l; \
|
||||
(high) = _l >> 32; \
|
||||
} while(0)
|
||||
|
||||
#define rdtscl(low) \
|
||||
do { \
|
||||
(low) = native_read_tsc(); \
|
||||
|
@ -560,11 +560,6 @@ static inline u64 paravirt_read_tsc(void)
|
||||
{
|
||||
return PVOP_CALL0(u64, read_tsc);
|
||||
}
|
||||
#define rdtsc(low,high) do { \
|
||||
u64 _l = paravirt_read_tsc(); \
|
||||
low = (u32)_l; \
|
||||
high = _l >> 32; \
|
||||
} while(0)
|
||||
|
||||
#define rdtscl(low) do { \
|
||||
u64 _l = paravirt_read_tsc(); \
|
||||
|
Loading…
Reference in New Issue
Block a user