From patchwork Mon Feb 19 17:16:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 203182 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:108:e6aa:91d0 with SMTP id mn5csp1422925dyc; Mon, 19 Feb 2024 09:17:38 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVj9L71OkueZqAJzOPqnCk3E7S1oqBGn0fOHrjHZAZLRu4l0TYJh+x0vSi403Nfnd55n0yx8Wd28l8MlIqBevVsaDMwtw== X-Google-Smtp-Source: AGHT+IEFAAppEhv732j5AQFDBbiphElcyqVGBDZTmaWSELNnEyoMCGt/LJo3RA0InC09H2AE1LEm X-Received: by 2002:a05:6358:e4a5:b0:17a:cfb0:828a with SMTP id by37-20020a056358e4a500b0017acfb0828amr15174112rwb.19.1708363057930; Mon, 19 Feb 2024 09:17:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708363057; cv=pass; d=google.com; s=arc-20160816; b=gkEWv4/ZQue4Rj+ib8t+1+7PW9Fo2J/TelmqnB3yL1NE3gC4H13R8OwBhddYYUM9IQ ZpHi5MhyA6LX96hKvFvopo9IDo9M9g9RAnd9yWek9+z4gchjpZAAIdoHpViBEV3XYG0S 8z4RmacRxRR9kuggEfTiD/hgEyE5T1zQBcqizmYF4EQLHXSRb7Ag54SHaQQNYNk6hDkj 6e38ATs1lnzOD6inIrnzjXOy+8P8bx7uSvP4pPFw31OiJG6nK0yzV/hHJOTi0yJEiCdM GUHW3ZTDPqvgc+smIHWf+CHHy3W1aADtlJyHZUOGcismBhpT25/FRapSA/4d5NJceN6a oFIw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:precedence:robot-unsubscribe:robot-id :message-id:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:references:in-reply-to:cc:subject:to:reply-to:sender :from:dkim-signature:dkim-signature:date; bh=2TA+v5j4Ilx1vcXmsZkRDFWpt5Cj4jMXTOCeeTb2Efk=; fh=f+82KrWJ1QQFdtGMOomguIYGRrdQi852VyKB2CMgnVY=; b=toLFf+3Fc/roWYZbwk1i+ndBhlzT+6cqkbtz5apZeyarEjKZsyH/DgPnh4ld0VLJGR zwzWOo0mxL1pEiTAuHTLhkPUIaQ7DWKvHONgjKn6gzmeFSjXPhu+EU7skRffRP1C1G3H FVw3Dn+UtpdojHgSLhoF1cOXPLaYsAnuxOKwU90NwLAKfdxB+HOSx6/3XWkD6FXNmyuv N0fgJh56bC+ZAeB37vyw1P3tL2YXELlroxBafT6vqIHQLtJyCSgOLJChBCf9FBu4sJdY ET28r7CQ5g8my9EtxAXpFjuGw97UU8elY7Gy69RqJ//i7KOtBTc1Nh1NWDc+hmN4hfki ELZg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=wzn2N3H1; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-71741-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71741-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id a21-20020a05622a02d500b0042dfc5eae2esi5381733qtx.494.2024.02.19.09.17.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 09:17:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-71741-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=wzn2N3H1; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-71741-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71741-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 825FF1C24544 for ; Mon, 19 Feb 2024 17:16:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B757845957; Mon, 19 Feb 2024 17:16:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="wzn2N3H1"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="dgQulpkn" 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 09AA441C8B; Mon, 19 Feb 2024 17:16:06 +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=1708362969; cv=none; b=VEDqBSBZ48dvBNk2RDrjCkVAmuKeh4NNj8qiUqwlch+LBDEc/cJ2ocOWRGYVy8erkMFEkmIf6S7mX+AWvFE2OraFDwDHY62OUIK/TL5GCyxCzuSf7IUNnppYs+uUpMMQTFgQj+0Vl1hyXXAxrt7kpI+mVf3Em8PDpRIKdwo7RPc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708362969; c=relaxed/simple; bh=vVGlqs7JwbyTldrnAVKRsBRIR8PLqeBhQS1YME7UUyQ=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=HPO7cg0+1dQUZeEyGpiTXZYDGbFWZ3lWXHTAFNK5pHNAQnGViwvaSSHvsOqmNQL/5gvB22Ek6016XEpHUSFf9AT849Qbe3Cclw+KfjH4ym6kRaShL8o823DwhEobS9YuP5b2Y1oJ3vnEOFaWU29tXRTed+7qmFUQn4lwKynqjGc= 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=wzn2N3H1; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=dgQulpkn; 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 Date: Mon, 19 Feb 2024 17:16:04 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1708362965; 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=2TA+v5j4Ilx1vcXmsZkRDFWpt5Cj4jMXTOCeeTb2Efk=; b=wzn2N3H1/Hs5/9a95kBg2J0t9VFUxKN/lWIXwonQxCmvi5L188D2vQ4o5O/dlK93M/pwRJ 7gZBbx36D+vy12a2KzG5JjpwkkqseXSPLuHE95Km1hO0BAAR429ag05hBygxNE90Zg6H82 IClJ7+3LzKyjpiCDdtz138t0b+JkPNFEvzHDwgxpr+QrBIsJEnH92CO3mJP2YTsTlSXEve CgIn3SbjRpc2dBGHMiI3jLxY76mPr+YoI/FMuRew3hJEiavL/K2qNMbDFabhs0mu6LYQt3 ba4ice0uAmkMHbtzf2dnz9WZ4UflywfFKWRbAWRhckm0rWdGSaj7ZUbPy3aw1A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1708362965; 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=2TA+v5j4Ilx1vcXmsZkRDFWpt5Cj4jMXTOCeeTb2Efk=; b=dgQulpkn4EdEUYp8bJtVG2QIIIzerwKg7TMslBHJfA21dCWstp6o36hJpxppDGPfyTiFc8 ftT/GyqpBsW5TrBw== From: "tip-bot2 for Alexey Dobriyan" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: smp/core] cpu: Mark cpu_possible_mask as __ro_after_init Cc: Alexey Dobriyan , Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <41cd78af-92a3-4f23-8c7a-4316a04a66d8@p183> References: <41cd78af-92a3-4f23-8c7a-4316a04a66d8@p183> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <170836296444.398.15393665833810225842.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791348501851327156 X-GMAIL-MSGID: 1791348501851327156 The following commit has been merged into the smp/core branch of tip: Commit-ID: da92df490eeab7a97a3390ff32e0ae091e0dc2eb Gitweb: https://git.kernel.org/tip/da92df490eeab7a97a3390ff32e0ae091e0dc2eb Author: Alexey Dobriyan AuthorDate: Mon, 05 Feb 2024 13:01:19 +03:00 Committer: Thomas Gleixner CommitterDate: Mon, 19 Feb 2024 18:05:47 +01:00 cpu: Mark cpu_possible_mask as __ro_after_init cpu_possible_mask is by definition "cpus which could be hotplugged without reboot". It's a property which is fixed after kernel enumerates the hardware configuration. Signed-off-by: Alexey Dobriyan Signed-off-by: Thomas Gleixner Link: https://lore.kernel.org/r/41cd78af-92a3-4f23-8c7a-4316a04a66d8@p183 --- kernel/cpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/cpu.c b/kernel/cpu.c index ad7d0b0..7b36b3a 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c @@ -3106,10 +3106,10 @@ const DECLARE_BITMAP(cpu_all_bits, NR_CPUS) = CPU_BITS_ALL; EXPORT_SYMBOL(cpu_all_bits); #ifdef CONFIG_INIT_ALL_POSSIBLE -struct cpumask __cpu_possible_mask __read_mostly +struct cpumask __cpu_possible_mask __ro_after_init; = {CPU_BITS_ALL}; #else -struct cpumask __cpu_possible_mask __read_mostly; +struct cpumask __cpu_possible_mask __ro_after_init; #endif EXPORT_SYMBOL(__cpu_possible_mask);