Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753918AbcCVXGX (ORCPT ); Tue, 22 Mar 2016 19:06:23 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34647 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751280AbcCVXGT (ORCPT ); Tue, 22 Mar 2016 19:06:19 -0400 From: Prarit Bhargava To: linux-kernel@vger.kernel.org Cc: Prarit Bhargava , x86@kernel.org, Borislav Petkov , Andy Lutomirski Subject: [PATCH] x86, msr, remove unused native_read_tscp() Date: Tue, 22 Mar 2016 19:06:08 -0400 Message-Id: <1458687968-9106-1-git-send-email-prarit@redhat.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Tue, 22 Mar 2016 23:06:18 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1159 Lines: 36 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 Cc: Andy Lutomirski Signed-off-by: Prarit Bhargava --- 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