From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) (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 CCFFB3812CD for ; Sat, 13 Jun 2026 20:17:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.155.50.34 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781381848; cv=none; b=pMHgUNKIDH2mLHXK56hNOFEYenh3D4YlivFWpaWxGn/aR8Naao83hoQSWqluvzDb1lvRfPZPOe6BJQaKuN8MNffZfE0e4qIiRlJ1s2QZHzQDVWgYGmbRPHMOHAQMmQbjjQ3sydnxJqDorthIWiKb2W8NchSB1U993cGRHTflj68= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781381848; c=relaxed/simple; bh=7pZGKpiKELlcp1bCHOXTzdVCTxOFw9ylwi6SheLyPOg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=N99v5Aggv+JVXqXM4HDEo/xSK2D7JqFoTu7o6QfMDpDQ/z7543IrjJl55ax0mrj/zoo3dLBdg7IpuYqA6iWTrcb8qlvUsqgTkkK61sbilpkABB4o4rttdfxjxy4sEhFpD6oHbZMa8VQaaeGEUNn5GfVT679VW5C1lqKOEZxadzg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org; spf=pass smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=fzOrgPLq; arc=none smtp.client-ip=90.155.50.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="fzOrgPLq" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=mzYGYVSopTOtzEOX5DGR5yGkcY+iEu9ImLDUbkLfyDk=; b=fzOrgPLqzvpErIT0t+Mh7/z/YD pRcm8TwdXpcbwZn/0IVFujlkeIp8XLQEYDXQrAKx06RO1z7TH25zPw9ZKldU8tT/OYZUfn4suVrsJ Y2Nj3TQGAnDC2IrNYoUn6y9ZfYd7D9Qyeji99iCUbYitVcqmMjqfJ+HYTtygyPaDVRBG5mFf+ArX8 w0b0RufYj+sx8Ptl0ErBGg3afpsNOAUoDHRIM4hhexnUcoN9cTFp8Td41cZEiIj11LBrkZLR8aG/T MgulqlfEBS/9chhcJ2bhYPcXwvWa5ZRdUGqdZCoWQ8OEIHaK8YbaY03CM+Y6pMdH3usABkPX63Jhj LlLzD2HA==; Received: from 77-249-17-252.cable.dynamic.v4.ziggo.nl ([77.249.17.252] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.99.1 #2 (Red Hat Linux)) id 1wYUn4-0000000616i-05HP; Sat, 13 Jun 2026 20:17:14 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id BDEB030031E; Sat, 13 Jun 2026 22:17:13 +0200 (CEST) Date: Sat, 13 Jun 2026 22:17:13 +0200 From: Peter Zijlstra To: Borislav Petkov Cc: "H. Peter Anvin" , Mike Rapoport , x86@kernel.org, Bert Karwatzki , Dave Hansen , Ingo Molnar , Thomas Gleixner , linux-kernel@vger.kernel.org Subject: Re: [PATCH] x86/alternative: Drop smp_locks glue Message-ID: <20260613201713.GB4002900@noisy.programming.kicks-ass.net> References: <20260328081634.797552-1-rppt@kernel.org> <20260328114118.GAace-Xu8bEKacpCtZ@fat_crate.local> <20260328195827.GCacgy44vl3_AUvhVr@fat_crate.local> <20260330174400.GEacq2YHnyomxVzXwp@fat_crate.local> <20260330193625.GF3558198@noisy.programming.kicks-ass.net> <306B9D7C-C6D0-43C6-9BDD-2FDF5DD5D2C3@zytor.com> <20260330202015.GGacra_z4sE6qh99zA@fat_crate.local> <20260613185632.GAai2n4GkGXFsBm6gT@fat_crate.local> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260613185632.GAai2n4GkGXFsBm6gT@fat_crate.local> On Sat, Jun 13, 2026 at 11:56:32AM -0700, Borislav Petkov wrote: > From: "Borislav Petkov (AMD)" > Date: Sat, 13 Jun 2026 10:15:27 -0700 > > This was there to be able to patch out locking instructions when running > a SMP kernel build on a UP CPU. The times are long gone when single-CPU > x86 machines were relevant so drop that machinery and simplify the code > considerably. > > LOCK_PREFIX needs to stay for when one wants to do a UP build for > whatever reason. That'll go away when CONFIG_SMP becomes unconditional. > > Kill a bunch of leftover, unused prototypes while at it. > > Signed-off-by: Borislav Petkov (AMD) Good riddance Acked-by: Peter Zijlstra (Intel)