All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch] x86: convert rdtscll() to use __native_read_tsc
@ 2008-12-16  8:32 Ken Chen
  2008-12-16  9:15 ` Ingo Molnar
  0 siblings, 1 reply; 6+ messages in thread
From: Ken Chen @ 2008-12-16  8:32 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: Linux Kernel Mailing List

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>


diff --git a/arch/x86/include/asm/msr.h b/arch/x86/include/asm/msr.h
index c2a812e..42f639b 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
 }

 #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 {							\

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-12-18 13:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-16  8:32 [patch] x86: convert rdtscll() to use __native_read_tsc Ken Chen
2008-12-16  9:15 ` Ingo Molnar
2008-12-16  9:26   ` Jeremy Fitzhardinge
2008-12-16 10:15     ` Ingo Molnar
2008-12-17  8:07       ` Ken Chen
2008-12-18 13:31         ` Ingo Molnar

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.