x86/msr: Remove unused native_read_tscp()
authorPrarit Bhargava <prarit@redhat.com>
Tue, 22 Mar 2016 23:06:08 +0000 (19:06 -0400)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 23 Mar 2016 11:34:17 +0000 (12:34 +0100)
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.

Signed-off-by: Prarit Bhargava <prarit@redhat.com>
Acked-by: Andy Lutomirski <luto@amacapital.net>
Cc: Borislav Petkov <bp@suse.de>
Link: http://lkml.kernel.org/r/1458687968-9106-1-git-send-email-prarit@redhat.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/include/asm/msr.h

index 93fb7c1cffda7a03e8e0248f634e86eb78e3ff3d..7a79ee2778b3b5067fa816e541bf93bc26cf782d 100644 (file)
@@ -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