Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2720595lqp; Mon, 25 Mar 2024 07:31:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUma6GycBIQ3pqpVrvBL/UsBxHHLk5pekzNquT58mom0uMgHvyBxbTCNUDpCa/knDLTsBks1JBMFh9ypyhJ8sHA0MCfzFL5gyxBvN9bPA== X-Google-Smtp-Source: AGHT+IGQJdxs1igVqrNkGeEK5T86Hhs9bjw59XetNu43ltgvrW2XqND34iCe30chwn+Im1NAR++2 X-Received: by 2002:a17:906:2612:b0:a45:ab98:aec with SMTP id h18-20020a170906261200b00a45ab980aecmr5174506ejc.10.1711377080042; Mon, 25 Mar 2024 07:31:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711377080; cv=pass; d=google.com; s=arc-20160816; b=sPnlxXt8opsrfEA5JWt71mCoNcvXCNUQ/3BAYZzCaX0NszOUf2MkFIz3TNlqLfHdCY +LuYHI5KPq1OGrAhJoMSzgC7PAd9utIuaUK7SDs0wCSO7CrwHgauFYZCoq9m+DZMl/r0 dnapdpIbekllHBlz4njNUwZHmjzPXdGU1fuu20JDSZREbY/nCH2TUuaR8LqtlEhtkktD TyIkKQqU4MRtN4ybpBkjjyzKUZ+l2ve0LY34E5xexB6Z28G416BdnzKhkGrr/l2lWuC7 +OekSY5rxAAqQRo79oe0nfYPhQJiTQHTUPkqy/0kCginMgNhwjkduN5U0ehtPpLAA1hI C/5w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=Usz6NqPuoR+4t6o4/+BGrule5lXSNDgUkzsE+6hTGrM=; fh=OvJRnOqsMTm9XoNmEwebcqh9Ud7yh1CTeKAP84ols98=; b=dVhfoSQYdme5dAtCK4l0JGTCK/gLqIu1sNFnk0RLso5KjiCjckDiPPieiqYIrkrmys nz/Wzg4CuCuBZ9Qs+RwFmKDg26eizC8NRrppRKkVT7URb/qn3kWZd23yJWDonmJf2/t5 Zk1/+DovBaK6JzVtxcxdB4zSsYKagvZ6DHqYgmeHTKNEvc5ISCv4mCT4p64VF2qjPi3t bBRoHcw4qbhWzw5MSY2kfcn9+BFip1Rzv1TRERpCwjMNW/gjXrOmEYrQBhJd9/AgPTck OMCu8WMdGZL+bUPZPWhDC+EFNrxlQ2m6jphL0mQCWb/xj0Zb15I4hIqZhPTZS/oZ28TU 1BiA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=P46c9+cO; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-116852-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116852-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id jz15-20020a170906bb0f00b00a4742939459si2340572ejb.349.2024.03.25.07.31.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 07:31:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-116852-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=P46c9+cO; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-116852-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116852-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id B48AF1F62713 for ; Mon, 25 Mar 2024 14:31:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2CEFC15B158; Mon, 25 Mar 2024 11:25:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="P46c9+cO" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.14]) (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 7C208149C6F for ; Mon, 25 Mar 2024 10:40:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.14 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711363215; cv=none; b=UNF4zM5XAMhUQt4+cOADPHDAEr/xpJlyo7cRYpAoahgIAn0I7wi7wl5XX64JLOzUCVF2pDgwW3U8d4j/30aeiPrp9degTsEbnnAzHwnUtIlXXSG6OtJGbYgVhZmwjnGd+G5+IXIhifZZY6wwXy2fJg8wqyOZzDli606atXWdY4A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711363215; c=relaxed/simple; bh=xIprGuZ+wzLEKGSqnVchQykT8aBwBOBoQqpTJEhq/2g=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=in4kB2sZIV4M/5T/rdUj1p/IyGDgzpnFRHcfP3HqcDzDMyQQbRfjKkZMK14Dk0mdMEg5LB4/CGTZpizLj23VVfzc0uHGKRkxS/tiZ8Bmk5V+SOEv7AujF9DQ1oiJSRuOYyQ2Hx6oB5ZNdMjFsKn8hCHw4r8WKTiLtqjuHDtAWM8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.helo=mgamail.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=P46c9+cO; arc=none smtp.client-ip=192.198.163.14 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.helo=mgamail.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1711363213; x=1742899213; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=xIprGuZ+wzLEKGSqnVchQykT8aBwBOBoQqpTJEhq/2g=; b=P46c9+cO1eZjFfSbibMw5G5ugNBgBojeQXWI7WWkKP2UMMxDjNSmJXpr U6x3GPGB/TflXDFfQavTjw8hmu7NcqreXHAkPhNRr48qSNOKgaj6TyXNt YuAHeptOtRd/uT+FCPNZlKpRRB2NUupE1JlA4JljGgFB9q/0s8HRdrAVQ 06oZ9zC9NIE8+zkTJZzFM7Bo7QF0YLpsDvYi/RWAUZDRGjo1j2Jw587fS mUFhIK8kCcG3a10ZIMNzSxqud5eXV37L2ThHUTT43/DVqdLQ8Knk+Wp2m QSYdufmICa2Lw0FTgO/ST6U19/RR3jEo2TGGd2rhzr7PY6/EClJ+HvJym w==; X-IronPort-AV: E=McAfee;i="6600,9927,11023"; a="6561310" X-IronPort-AV: E=Sophos;i="6.07,152,1708416000"; d="scan'208";a="6561310" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Mar 2024 03:40:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,11023"; a="937070131" X-IronPort-AV: E=Sophos;i="6.07,152,1708416000"; d="scan'208";a="937070131" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga001.fm.intel.com with ESMTP; 25 Mar 2024 03:40:05 -0700 Received: by black.fi.intel.com (Postfix, from userid 1000) id E21EB3C5; Mon, 25 Mar 2024 12:40:04 +0200 (EET) From: "Kirill A. Shutemov" To: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org Cc: "Rafael J. Wysocki" , Peter Zijlstra , Adrian Hunter , Kuppuswamy Sathyanarayanan , Elena Reshetova , Jun Nakajima , Rick Edgecombe , Tom Lendacky , "Kalra, Ashish" , Sean Christopherson , "Huang, Kai" , Baoquan He , kexec@lists.infradead.org, linux-coco@lists.linux.dev, linux-kernel@vger.kernel.org, "Kirill A. Shutemov" Subject: [PATCHv9 02/17] x86/apic: Mark acpi_mp_wake_* variables as __ro_after_init Date: Mon, 25 Mar 2024 12:38:56 +0200 Message-ID: <20240325103911.2651793-3-kirill.shutemov@linux.intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240325103911.2651793-1-kirill.shutemov@linux.intel.com> References: <20240325103911.2651793-1-kirill.shutemov@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit acpi_mp_wake_mailbox_paddr and acpi_mp_wake_mailbox initialized once during ACPI MADT init and never changed. Signed-off-by: Kirill A. Shutemov Acked-by: Kai Huang Reviewed-by: Baoquan He Reviewed-by: Thomas Gleixner --- arch/x86/kernel/acpi/madt_wakeup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/acpi/madt_wakeup.c b/arch/x86/kernel/acpi/madt_wakeup.c index 7f164d38bd0b..cf79ea6f3007 100644 --- a/arch/x86/kernel/acpi/madt_wakeup.c +++ b/arch/x86/kernel/acpi/madt_wakeup.c @@ -6,10 +6,10 @@ #include /* Physical address of the Multiprocessor Wakeup Structure mailbox */ -static u64 acpi_mp_wake_mailbox_paddr; +static u64 acpi_mp_wake_mailbox_paddr __ro_after_init; /* Virtual address of the Multiprocessor Wakeup Structure mailbox */ -static struct acpi_madt_multiproc_wakeup_mailbox *acpi_mp_wake_mailbox; +static struct acpi_madt_multiproc_wakeup_mailbox *acpi_mp_wake_mailbox __ro_after_init; static int acpi_wakeup_cpu(u32 apicid, unsigned long start_ip) { -- 2.43.0