From: tip-bot for Prarit Bhargava <tipbot@zytor.com>
To: linux-tip-commits@vger.kernel.org
Cc: prarit@redhat.com, hpa@zytor.com, luto@amacapital.net,
linux-kernel@vger.kernel.org, bp@suse.de, mingo@kernel.org,
tglx@linutronix.de
Subject: [tip:x86/urgent] x86/msr: Remove unused native_read_tscp()
Date: Wed, 23 Mar 2016 04:40:06 -0700 [thread overview]
Message-ID: <tip-9da77666d6975219281fd400eb9608a047337414@git.kernel.org> (raw)
In-Reply-To: <1458687968-9106-1-git-send-email-prarit@redhat.com>
Commit-ID: 9da77666d6975219281fd400eb9608a047337414
Gitweb: http://git.kernel.org/tip/9da77666d6975219281fd400eb9608a047337414
Author: Prarit Bhargava <prarit@redhat.com>
AuthorDate: Tue, 22 Mar 2016 19:06:08 -0400
Committer: Thomas Gleixner <tglx@linutronix.de>
CommitDate: Wed, 23 Mar 2016 12:34:17 +0100
x86/msr: Remove unused native_read_tscp()
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 | 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
prev parent reply other threads:[~2016-03-23 11:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
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-bot for Prarit Bhargava [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=tip-9da77666d6975219281fd400eb9608a047337414@git.kernel.org \
--to=tipbot@zytor.com \
--cc=bp@suse.de \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=luto@amacapital.net \
--cc=mingo@kernel.org \
--cc=prarit@redhat.com \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox