Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755070AbcCWLkf (ORCPT ); Wed, 23 Mar 2016 07:40:35 -0400 Received: from terminus.zytor.com ([198.137.202.10]:51510 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754964AbcCWLk0 (ORCPT ); Wed, 23 Mar 2016 07:40:26 -0400 Date: Wed, 23 Mar 2016 04:40:06 -0700 From: tip-bot for Prarit Bhargava Message-ID: Cc: prarit@redhat.com, hpa@zytor.com, luto@amacapital.net, linux-kernel@vger.kernel.org, bp@suse.de, mingo@kernel.org, tglx@linutronix.de Reply-To: bp@suse.de, tglx@linutronix.de, mingo@kernel.org, prarit@redhat.com, linux-kernel@vger.kernel.org, luto@amacapital.net, hpa@zytor.com In-Reply-To: <1458687968-9106-1-git-send-email-prarit@redhat.com> References: <1458687968-9106-1-git-send-email-prarit@redhat.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/urgent] x86/msr: Remove unused native_read_tscp() Git-Commit-ID: 9da77666d6975219281fd400eb9608a047337414 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1477 Lines: 42 Commit-ID: 9da77666d6975219281fd400eb9608a047337414 Gitweb: http://git.kernel.org/tip/9da77666d6975219281fd400eb9608a047337414 Author: Prarit Bhargava AuthorDate: Tue, 22 Mar 2016 19:06:08 -0400 Committer: Thomas Gleixner 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 Acked-by: Andy Lutomirski Cc: Borislav Petkov Link: http://lkml.kernel.org/r/1458687968-9106-1-git-send-email-prarit@redhat.com Signed-off-by: Thomas Gleixner --- 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