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 9696939903A; Mon, 8 Jun 2026 08:03:22 +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=1780905803; cv=none; b=B2kY8biKnIPJlRn3QIWqtuLUgSdDYWVnW/fubqobyYTxErFFCMkSETs2vwW+TUnqhYcvM/9r8i0vUFwBXQLb3NWDHE6W/lEKWeiVrGDZnUvLtq7EWyKd8LId9H5pWTj+M3F56IlU/7dzM3WfILSJPHiM203pgAYWMAXuKcMzUh4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780905803; c=relaxed/simple; bh=jSDuzfCO7Sth/SCj5/AC3S/GaPpYhFewyfdklmkX/YA=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=UBAW9KpxWnIyou0chrZw0sf8mrDEZG+nie/xTPkFifVg+qOg0mmlqzPaRCJtigzy4i5rw07aX7zr1OH1XPjU9GXTQ+GFWJSfBb1O51HUIzRIjokV6smrJW3+xNGrpPrPVQbP3IvJ432PlDjjBJrBBKGp6WJ0KOym5ElmbHtWL44= 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=OGtMFgHt; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=6qyzs1qY; 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="OGtMFgHt"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="6qyzs1qY" Date: Mon, 08 Jun 2026 08:03:17 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1780905800; 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=U1F1bRPdOaS00ZKAzK6X0V+YWGl3qeJyI+7gsRo15y8=; b=OGtMFgHtp7SOysWoyJD4NwM0+xAElSTwMb1am4Gkxzn7+S2SyImA6fU8Tjmu+NLXKp1Ff8 5uRHC58XjzQq/q9rXkzGLz70Fi7ubuMpJZhKAaaCJiuoqMFzYhjluO2FNbR05h6zzsT+EK Daz2Z1fKL9LRFCBlFazrdX7rxvdwp3dvw4HiwmvVN+tKWKKJws7GfDslBjMPtjgJgAit7c jwIvoJ4uTdpydPtrdYuW6WKREs8KrsrSi82xMJeQutRWhRD27lAJKtx8y3HE6a/xSDqQlG GUMimMKPExi0W2SuYrEIEISz5UFXXs5Lpq8p6x7dyt1gwqW8JOGwrRpSIS4wKA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1780905800; 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=U1F1bRPdOaS00ZKAzK6X0V+YWGl3qeJyI+7gsRo15y8=; b=6qyzs1qY+o3XvrSb8ZC4N1yNgmQKVys1Z2yhtNf91ZjFRSwZuw5Xcqz44wVJh8GPoipmp8 /1qvwDhS/e1c8eDA== 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 wrmsr_safe_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-12-jgross@suse.com> References: <20260608051741.3207435-12-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: <178090579762.529383.3558714314331799999.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: cdd2c4133ad2f5b655fa47ac43e6bcaa5b48434d Gitweb: https://git.kernel.org/tip/cdd2c4133ad2f5b655fa47ac43e6bcaa5b4= 8434d Author: Juergen Gross AuthorDate: Mon, 08 Jun 2026 07:17:41 +02:00 Committer: Ingo Molnar CommitterDate: Mon, 08 Jun 2026 10:01:49 +02:00 x86/msr: Remove wrmsr_safe_on_cpu() wrmsr_safe_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-12-jgross@suse.com --- arch/x86/include/asm/msr.h | 5 ----- arch/x86/lib/msr-smp.c | 16 ---------------- 2 files changed, 21 deletions(-) diff --git a/arch/x86/include/asm/msr.h b/arch/x86/include/asm/msr.h index b0bf1a7..77dc747 100644 --- a/arch/x86/include/asm/msr.h +++ b/arch/x86/include/asm/msr.h @@ -260,7 +260,6 @@ int rdmsrq_on_cpu(unsigned int cpu, u32 msr_no, u64 *q); int wrmsrq_on_cpu(unsigned int cpu, u32 msr_no, u64 q); void rdmsr_on_cpus(const struct cpumask *mask, u32 msr_no, struct msr __perc= pu *msrs); void wrmsr_on_cpus(const struct cpumask *mask, u32 msr_no, struct msr __perc= pu *msrs); -int wrmsr_safe_on_cpu(unsigned int cpu, u32 msr_no, u32 l, u32 h); int rdmsrq_safe_on_cpu(unsigned int cpu, u32 msr_no, u64 *q); 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]); @@ -286,10 +285,6 @@ static inline void wrmsr_on_cpus(const struct cpumask *m= , u32 msr_no, { wrmsrq_on_cpu(0, msr_no, raw_cpu_read(msrs->q)); } -static inline int wrmsr_safe_on_cpu(unsigned int cpu, u32 msr_no, u32 l, u32= h) -{ - return wrmsr_safe(msr_no, l, h); -} static inline int rdmsrq_safe_on_cpu(unsigned int cpu, u32 msr_no, u64 *q) { return rdmsrq_safe(msr_no, q); diff --git a/arch/x86/lib/msr-smp.c b/arch/x86/lib/msr-smp.c index f58e0ba..0c66277 100644 --- a/arch/x86/lib/msr-smp.c +++ b/arch/x86/lib/msr-smp.c @@ -132,22 +132,6 @@ static void __wrmsr_safe_on_cpu(void *info) rv->err =3D wrmsr_safe(rv->msr_no, rv->reg.l, rv->reg.h); } =20 -int wrmsr_safe_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; - rv.reg.l =3D l; - rv.reg.h =3D h; - err =3D smp_call_function_single(cpu, __wrmsr_safe_on_cpu, &rv, 1); - - return err ? err : rv.err; -} -EXPORT_SYMBOL(wrmsr_safe_on_cpu); - int wrmsrq_safe_on_cpu(unsigned int cpu, u32 msr_no, u64 q) { int err;