From nobody Mon Feb 9 02:08:03 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 327BD267721; Fri, 2 May 2025 09:04:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746176675; cv=none; b=gYIe5xTSBODPB+Lywj15gMYZHUrDrSGXWjnkE1NcD+LqlroIxSSBbFo46UjT8Br1cTBWvTk/138A/qvUZAiZVzBWovIjnJmj28sRi/UxM+zcK2opPezaQSUnlxfhVBqYPKmMFCArjBzYaYwX00JTXEo3T1FoVaTsQCrs2tlLliA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746176675; c=relaxed/simple; bh=ce4/il1Jsc2hWgloEYtkUAJ83yOvgHK5zL9hxj7m+cY=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=H57Xba6ttUS2iHxEfO0NZ4qDZ6A3WAuUdGN2Z46G5ly23N5IP/a0YWBRfA4HxYt5meu+panroUmXGC6yhUKEkFJ7NnNjEsQ7btbhhy0DkFUIgOnmjTGfGT89Zla2HPPjUjHRFJB9/VVJCnpO9gjb/iqQjj0MmnFHzH7bvqUdL94= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=m9iLRU3s; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=XvBEZwxY; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="m9iLRU3s"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="XvBEZwxY" Date: Fri, 02 May 2025 09:04:26 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1746176667; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RopC7V2EM8tnXXziN0UcEBr1L4lmgNPPISwHFOC2Yuc=; b=m9iLRU3s2L++NJwVMO3COX33p4hAxj+ZM0aRlqcx8ID2sQEyuJjgfdhSZSQK74PHg5AxO6 EI+EVGFDlzeMbSZNcYXG3hE/Molj4IltugH+1RoxElTEKUi9YF8anGD44OQLi6DUWPrFTU 08q5cBZ5KlNlKmvrPmnI9DaKw9nvrQWq+De1wOQvv9jJjXGRdYDPqIugedU2diBdh3fck2 KRV9VwJkwe0W+yLAICmqwxOPohcdfn7nHVWqS2Sc0mAzO4tF9Rg5J2lnOY68nmpOV3O+G0 m9RVMMo9qVfXc4VVfvpLCQsabIvzx8FjYsmUwNL6r6LRDMIkGNaQHeARrmQkyA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1746176667; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RopC7V2EM8tnXXziN0UcEBr1L4lmgNPPISwHFOC2Yuc=; b=XvBEZwxYl9lGo9lV8mSPQbXeAfEz/jbS4/3M2z2eMJeGyE9JkbzAQuK5w39LEypcreg/uN 5p3/AxqJGhqVuuBA== From: "tip-bot2 for Xin Li (Intel)" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/merge] x86/msr: Remove the unused rdpmc() method Cc: "Xin Li (Intel)" , Ingo Molnar , Dave Hansen , "Peter Zijlstra (Intel)" , Andy Lutomirski , Brian Gerst , Juergen Gross , "H. Peter Anvin" , Linus Torvalds , Kees Cook , Borislav Petkov , Thomas Gleixner , Josh Poimboeuf , Uros Bizjak , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20250427092027.1598740-4-xin@zytor.com> References: <20250427092027.1598740-4-xin@zytor.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <174617666670.22196.10268361923190087856.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the x86/merge branch of tip: Commit-ID: 91882511ef905fdfb7d33be88f6ddb91012ee30f Gitweb: https://git.kernel.org/tip/91882511ef905fdfb7d33be88f6ddb910= 12ee30f Author: Xin Li (Intel) AuthorDate: Sun, 27 Apr 2025 02:20:15 -07:00 Committer: Ingo Molnar CommitterDate: Fri, 02 May 2025 10:25:04 +02:00 x86/msr: Remove the unused rdpmc() method rdpmc() is not used anywhere anymore, remove it. Signed-off-by: Xin Li (Intel) Signed-off-by: Ingo Molnar Acked-by: Dave Hansen Acked-by: Peter Zijlstra (Intel) Cc: Andy Lutomirski Cc: Brian Gerst Cc: Juergen Gross Cc: H. Peter Anvin Cc: Linus Torvalds Cc: Kees Cook Cc: Borislav Petkov Cc: Thomas Gleixner Cc: Josh Poimboeuf Cc: Uros Bizjak Link: https://lore.kernel.org/r/20250427092027.1598740-4-xin@zytor.com --- arch/x86/include/asm/msr.h | 7 ------- arch/x86/include/asm/paravirt.h | 7 ------- 2 files changed, 14 deletions(-) diff --git a/arch/x86/include/asm/msr.h b/arch/x86/include/asm/msr.h index f5c0969..07d45fc 100644 --- a/arch/x86/include/asm/msr.h +++ b/arch/x86/include/asm/msr.h @@ -217,13 +217,6 @@ static inline int rdmsrq_safe(u32 msr, u64 *p) return err; } =20 -#define rdpmc(counter, low, high) \ -do { \ - u64 _l =3D native_read_pmc((counter)); \ - (low) =3D (u32)_l; \ - (high) =3D (u32)(_l >> 32); \ -} while (0) - #define rdpmcl(counter, val) ((val) =3D native_read_pmc(counter)) =20 #endif /* !CONFIG_PARAVIRT_XXL */ diff --git a/arch/x86/include/asm/paravirt.h b/arch/x86/include/asm/paravir= t.h index 86a7752..c4dedb9 100644 --- a/arch/x86/include/asm/paravirt.h +++ b/arch/x86/include/asm/paravirt.h @@ -244,13 +244,6 @@ static inline u64 paravirt_read_pmc(int counter) return PVOP_CALL1(u64, cpu.read_pmc, counter); } =20 -#define rdpmc(counter, low, high) \ -do { \ - u64 _l =3D paravirt_read_pmc(counter); \ - low =3D (u32)_l; \ - high =3D _l >> 32; \ -} while (0) - #define rdpmcl(counter, val) ((val) =3D paravirt_read_pmc(counter)) =20 static inline void paravirt_alloc_ldt(struct desc_struct *ldt, unsigned en= tries)