From: H. Peter Anvin Date: Wed, 9 May 2007 07:02:06 +0000 (-0700) Subject: i386: remove unused rdtsc() macro X-Git-Tag: v2.6.22-rc1~150 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29bd44337799e4cb85aec5157a9c88a0da66642a;p=linux-2.6 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 Signed-off-by: Linus Torvalds --- diff --git a/include/asm-i386/msr.h b/include/asm-i386/msr.h index 26861df52c..c70773e2ff 100644 --- a/include/asm-i386/msr.h +++ b/include/asm-i386/msr.h @@ -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(); \ diff --git a/include/asm-i386/paravirt.h b/include/asm-i386/paravirt.h index e2e7f98723..bc5c12c135 100644 --- a/include/asm-i386/paravirt.h +++ b/include/asm-i386/paravirt.h @@ -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(); \