提交 29bd4433 编写于 作者: H H. Peter Anvin 提交者: Linus Torvalds

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: NH. Peter Anvin <hpa@zytor.com>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 21c42bd8
...@@ -121,13 +121,6 @@ static inline void wrmsrl (unsigned long msr, unsigned long long val) ...@@ -121,13 +121,6 @@ static inline void wrmsrl (unsigned long msr, unsigned long long val)
__err; \ __err; \
}) })
#define rdtsc(low,high) \
do { \
u64 _l = native_read_tsc(); \
(low) = (u32)_l; \
(high) = _l >> 32; \
} while(0)
#define rdtscl(low) \ #define rdtscl(low) \
do { \ do { \
(low) = native_read_tsc(); \ (low) = native_read_tsc(); \
......
...@@ -560,11 +560,6 @@ static inline u64 paravirt_read_tsc(void) ...@@ -560,11 +560,6 @@ static inline u64 paravirt_read_tsc(void)
{ {
return PVOP_CALL0(u64, read_tsc); 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 { \ #define rdtscl(low) do { \
u64 _l = paravirt_read_tsc(); \ u64 _l = paravirt_read_tsc(); \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册