public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86, msr, remove unused native_read_tscp()
@ 2016-03-22 23:06 Prarit Bhargava
  2016-03-22 23:10 ` Andy Lutomirski
  2016-03-23 11:40 ` [tip:x86/urgent] x86/msr: Remove " tip-bot for Prarit Bhargava
  0 siblings, 2 replies; 3+ messages in thread
From: Prarit Bhargava @ 2016-03-22 23:06 UTC (permalink / raw)
  To: linux-kernel; +Cc: Prarit Bhargava, x86, Borislav Petkov, Andy Lutomirski

After e76b027 ("x86,vdso: Use LSL unconditionally for vgetcpu")
native_read_tscp() is unused in the kernel.  The function can be removed
like native_read_tsc() was.

[prarit@prarit linux]$ git grep native_read_tscp
arch/x86/include/asm/msr.h:45:static inline unsigned long long native_read_tscp(unsigned int *aux)

Cc: x86@kernel.org
Cc: Borislav Petkov <bp@suse.de>
Cc: Andy Lutomirski <luto@amacapital.net>
Signed-off-by: Prarit Bhargava <prarit@redhat.com>
---
 arch/x86/include/asm/msr.h |    8 --------
 1 file changed, 8 deletions(-)

diff --git a/arch/x86/include/asm/msr.h b/arch/x86/include/asm/msr.h
index 93fb7c1..7a79ee2 100644
--- a/arch/x86/include/asm/msr.h
+++ b/arch/x86/include/asm/msr.h
@@ -42,14 +42,6 @@ struct saved_msrs {
 	struct saved_msr *array;
 };
 
-static inline unsigned long long native_read_tscp(unsigned int *aux)
-{
-	unsigned long low, high;
-	asm volatile(".byte 0x0f,0x01,0xf9"
-		     : "=a" (low), "=d" (high), "=c" (*aux));
-	return low | ((u64)high << 32);
-}
-
 /*
  * both i386 and x86_64 returns 64-bit value in edx:eax, but gcc's "A"
  * constraint has different meanings. For i386, "A" means exactly
-- 
1.7.9.3

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

end of thread, other threads:[~2016-03-23 11:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-22 23:06 [PATCH] x86, msr, remove unused native_read_tscp() Prarit Bhargava
2016-03-22 23:10 ` Andy Lutomirski
2016-03-23 11:40 ` [tip:x86/urgent] x86/msr: Remove " tip-bot for Prarit Bhargava

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox