x86: convert rdtscll() to use __native_read_tsc
authorKen Chen <kenchen@google.com>
Tue, 16 Dec 2008 08:32:21 +0000 (00:32 -0800)
committerIngo Molnar <mingo@elte.hu>
Tue, 16 Dec 2008 09:17:02 +0000 (10:17 +0100)
Impact: micro-optimization

Is there any reason why x86 rdtscll have to use the out of line
function instead of inline __native_read_tsc()?  native_read_tsc and
__native_read_tsc is essentially the same functions.

Patch to let x86 rdtscll() to use the inline version of read_tsc.

Signed-off-by: Ken Chen <kenchen@google.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/msr.h

index c2a812ebde890e590794ea1e2d8a39d5cec49e9f..42f639b991b44d02e8b2d391755631b32e3f9781 100644 (file)
@@ -181,10 +181,10 @@ static inline int rdmsrl_amd_safe(unsigned msr, unsigned long long *p)
 }
 
 #define rdtscl(low)                                            \
-       ((low) = (u32)native_read_tsc())
+       ((low) = (u32)__native_read_tsc())
 
 #define rdtscll(val)                                           \
-       ((val) = native_read_tsc())
+       ((val) = __native_read_tsc())
 
 #define rdpmc(counter, low, high)                      \
 do {                                                   \