diff options
author | Ken Chen <kenchen@google.com> | 2008-12-16 03:32:21 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-12-16 04:17:02 -0500 |
commit | 205516c12dbba003c26b42cfb41e598631300106 (patch) | |
tree | a392f1fd4735ac67fa6ff01d1f3961bde7cd527b | |
parent | 5279585ff2bedc8180da5bdf8aa3ff1736466de2 (diff) |
x86: convert rdtscll() to use __native_read_tsc
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>
-rw-r--r-- | arch/x86/include/asm/msr.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/include/asm/msr.h b/arch/x86/include/asm/msr.h index c2a812ebde89..42f639b991b4 100644 --- a/arch/x86/include/asm/msr.h +++ b/arch/x86/include/asm/msr.h | |||
@@ -181,10 +181,10 @@ static inline int rdmsrl_amd_safe(unsigned msr, unsigned long long *p) | |||
181 | } | 181 | } |
182 | 182 | ||
183 | #define rdtscl(low) \ | 183 | #define rdtscl(low) \ |
184 | ((low) = (u32)native_read_tsc()) | 184 | ((low) = (u32)__native_read_tsc()) |
185 | 185 | ||
186 | #define rdtscll(val) \ | 186 | #define rdtscll(val) \ |
187 | ((val) = native_read_tsc()) | 187 | ((val) = __native_read_tsc()) |
188 | 188 | ||
189 | #define rdpmc(counter, low, high) \ | 189 | #define rdpmc(counter, low, high) \ |
190 | do { \ | 190 | do { \ |