From mboxrd@z Thu Jan 1 00:00:00 1970 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 64C683A5427; Mon, 8 Jun 2026 08:03:32 +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=1780905813; cv=none; b=mQLIYFygagrOJWtzWRP79Zc+9vVIctGDzHOIMOGU12gzhEkGPE4Vr4cINzji6Ukx40qPytpQ+NMqxDxOjwmyCeTc6ArvyHSi87xegXMLWkRdfA5l3yITZXidtrD1GKRVlbvo6nIWQ3wFG5rkeg9zjGRKZ1t1BK3/w7OPRcgRimA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780905813; c=relaxed/simple; bh=I/+DiGTAhStx41gMYFRk6ByG7xkFhik9dz99Gw7dDy8=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=ODfYF8mECAlHO5byUuURJuAaNl06/TF5egDhvTS309MeRqJly4iNYI2EzOXUxhwG3fd6CknKKrcbiWD60kvyN8n6E+CLEW7EBXxXtV1Lgohrr0/ME+m31lLTgvD+Z2feNqqxGwhSBQo1viXhk+o2YQN+icvzo/gzig5FojnPf3I= 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=E7a7dh4Z; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=qMQKqcy+; 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="E7a7dh4Z"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="qMQKqcy+" Date: Mon, 08 Jun 2026 08:03:28 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1780905810; 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=w20evqUgEVyotSVF+Xp8qvfasMiBn4eqnznEfDS0pQg=; b=E7a7dh4ZJBFk3MDukTIASVOofPw3cDGvbaFpSIuYWQTbY2BbjGRPgfQzvRwJY4T63mffz5 94/aVpS/J5LVbKW1rRj0Yziv4IRQx1uSxoseN9LzluRPEMZkMxGWJYK5RHlfBIU246f80h nXCXSbpO5chhDYUL6t2B35DoTztOqZlYZgT+QLlmnLEwKKOPx3KRQjFa3ygSLci/XVazqY MZ+pNcPD5Pw9CqWKpRYhS06B+cv5S2fEuamZSFk6jtTS8+OGxwo3lyLSIpHKrsw0Qx1EQb i9PlGiwzqweHAgA+1TA8aHaF1weyRg+3eFD7hZ2bqNlxmuyZh6TRrbhfqmv3/Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1780905810; 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=w20evqUgEVyotSVF+Xp8qvfasMiBn4eqnznEfDS0pQg=; b=qMQKqcy+wSvVoXMYdi/xROjhRJXXcxBAFm0ws04M1QQMN6fwaRSKRBfxx2EhutH65g1UnG XdCHJdJao4uiBmCg== From: "tip-bot2 for Juergen Gross" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/msr] x86/msr: Remove rdmsr_on_cpu() Cc: K Prateek Nayak , Juergen Gross , Ingo Molnar , Dave Hansen , "H. Peter Anvin" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260608051741.3207435-5-jgross@suse.com> References: <20260608051741.3207435-5-jgross@suse.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <178090580862.529383.16633502870414663001.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/msr branch of tip: Commit-ID: 5ad93d5cd69392e35b6d3e4dcfc5d07c2b4afa4b Gitweb: https://git.kernel.org/tip/5ad93d5cd69392e35b6d3e4dcfc5d07c2b4= afa4b Author: Juergen Gross AuthorDate: Mon, 08 Jun 2026 07:17:34 +02:00 Committer: Ingo Molnar CommitterDate: Mon, 08 Jun 2026 10:01:49 +02:00 x86/msr: Remove rdmsr_on_cpu() rdmsr_on_cpu() has no users left. Delete it. Tested-by: K Prateek Nayak Signed-off-by: Juergen Gross Signed-off-by: Ingo Molnar Reviewed-by: Dave Hansen Cc: H. Peter Anvin Link: https://patch.msgid.link/20260608051741.3207435-5-jgross@suse.com --- arch/x86/include/asm/msr.h | 6 ------ arch/x86/lib/msr-smp.c | 16 ---------------- 2 files changed, 22 deletions(-) diff --git a/arch/x86/include/asm/msr.h b/arch/x86/include/asm/msr.h index d5985d6..22f914f 100644 --- a/arch/x86/include/asm/msr.h +++ b/arch/x86/include/asm/msr.h @@ -256,7 +256,6 @@ int msr_set_bit(u32 msr, u8 bit); int msr_clear_bit(u32 msr, u8 bit); =20 #ifdef CONFIG_SMP -int rdmsr_on_cpu(unsigned int cpu, u32 msr_no, u32 *l, u32 *h); int wrmsr_on_cpu(unsigned int cpu, u32 msr_no, u32 l, u32 h); int rdmsrq_on_cpu(unsigned int cpu, u32 msr_no, u64 *q); int wrmsrq_on_cpu(unsigned int cpu, u32 msr_no, u64 q); @@ -269,11 +268,6 @@ int wrmsrq_safe_on_cpu(unsigned int cpu, u32 msr_no, u64= q); int rdmsr_safe_regs_on_cpu(unsigned int cpu, u32 regs[8]); int wrmsr_safe_regs_on_cpu(unsigned int cpu, u32 regs[8]); #else /* CONFIG_SMP */ -static inline int rdmsr_on_cpu(unsigned int cpu, u32 msr_no, u32 *l, u32 *h) -{ - rdmsr(msr_no, *l, *h); - return 0; -} static inline int wrmsr_on_cpu(unsigned int cpu, u32 msr_no, u32 l, u32 h) { wrmsr(msr_no, l, h); diff --git a/arch/x86/lib/msr-smp.c b/arch/x86/lib/msr-smp.c index b8f6341..65658e8 100644 --- a/arch/x86/lib/msr-smp.c +++ b/arch/x86/lib/msr-smp.c @@ -31,22 +31,6 @@ static void __wrmsr_on_cpu(void *info) wrmsr(rv->msr_no, reg->l, reg->h); } =20 -int rdmsr_on_cpu(unsigned int cpu, u32 msr_no, u32 *l, u32 *h) -{ - int err; - struct msr_info rv; - - memset(&rv, 0, sizeof(rv)); - - rv.msr_no =3D msr_no; - err =3D smp_call_function_single(cpu, __rdmsr_on_cpu, &rv, 1); - *l =3D rv.reg.l; - *h =3D rv.reg.h; - - return err; -} -EXPORT_SYMBOL(rdmsr_on_cpu); - int rdmsrq_on_cpu(unsigned int cpu, u32 msr_no, u64 *q) { int err;