Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp3081163rdb; Mon, 4 Dec 2023 16:47:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IGjTrTEDpgLSu8tg51zFYwUgX+SgN0V+kqGpoXgcnxXOIv8RjZId8x5ZYsBu0G65dn8hlvi X-Received: by 2002:a17:90b:2281:b0:286:a502:dfe2 with SMTP id kx1-20020a17090b228100b00286a502dfe2mr518323pjb.52.1701737226889; Mon, 04 Dec 2023 16:47:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701737226; cv=none; d=google.com; s=arc-20160816; b=vHzW5kHMLXLU76VHBl815cQ9f9fX9J9ktp/Xwx27OqRxN8OsjOIcxNJ1qYVGsn2Si5 NyfNmqzuokubQqMaYqwJ8xldnDHaoJLRZ1DLkD5BxWLMwNQ5P2ZkMWWijN2ypNUBVVSG di5lAXBY0APvMLzMerzRoyXFr5KwUvW1Jy3fL20V5goYBOaIPcJSkKQwub4TvKnqeQPz rTY3cZgPNi47YBwRVFSY+P2edpqtJvHPjvqPgeOmCnK0NP4IipNwc0++XgUDbf/9zdYx Rg796RnZMEkuC6mCxLbOFbfZonQcB9/ZYId2Zma6PrAXTRSA3o2kNQhepydJIaRY2Rpw ZL0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Di9mLeQl97RwHv5CsWDbURvq9Eu+X3+BxHEdmoPN0YI=; fh=OvJRnOqsMTm9XoNmEwebcqh9Ud7yh1CTeKAP84ols98=; b=ADWLb/4GS27L635jxc1uYjgerT917uhAEEjathUg5F3Fsez7KvOKlFNs7GBTdgEAv2 dFcT80voj/vgTNIBRSPNBto6A8xCuS0XbXGZxwItJ6TISIBLMHv7kMFHI1UMSiap16hg zh5Re66T0uTtmqF/Fzn7OYymDsmmfk8IZJvJCpgrZ5lGeebN5eN9cl69hey0c+pH/Vwv lZx/i61q22677c55JSLdl1pdMXGiguKUI+1m636/mJe1ELC/fHIN0/lvngkxR4kcTVhD ZmWQhIEuPQMpODebibhu3jlyh7S+PuF7i81XG2ZV20smTUmV1eh1r3LqMWWmdJFsFAQw g7VA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=atTeV75Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id ci1-20020a17090afc8100b0028665a21ec8si5017490pjb.41.2023.12.04.16.47.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 16:47:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=atTeV75Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 838F5804C636; Mon, 4 Dec 2023 16:47:01 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234842AbjLEApl (ORCPT + 99 others); Mon, 4 Dec 2023 19:45:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231567AbjLEApZ (ORCPT ); Mon, 4 Dec 2023 19:45:25 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E2D310F for ; Mon, 4 Dec 2023 16:45:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701737131; x=1733273131; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=rRqk8Me3Mc+00KtmumlNI0KQ6itAlytBjh04y1PXAoM=; b=atTeV75Qj0+OKnaE+JDZfaFX/WYO0lP5xw6ncL7VLTuJx11EHsg0499C SAlZM7lTpmcZjfCus7U8YzXxYnWAJD2BX2N3MmsHKg98BaCgXZqzaQN4N jYygB+crbNL2MuvdA2WUVw4k7qsNe00N1bgxCoVIde5eNnOVm0VlXD2T9 IBW8B/ytMhwhIgjoXxLAoEGrXIFcoP7dNC4bla/4GH2w/EozlYQxw4Xkz eUw5p1onwYgkWEZpHWyE2L0y+9sb1AgttVDKS6VqO3umYu0VxZq7wT3hi JfTzzmVt9RsEQyF5cmTDGFg54HUQ7BhRmG35GHJ264rZ0yj38ZulAmwk/ w==; X-IronPort-AV: E=McAfee;i="6600,9927,10914"; a="392688643" X-IronPort-AV: E=Sophos;i="6.04,251,1695711600"; d="scan'208";a="392688643" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Dec 2023 16:45:28 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10914"; a="944067918" X-IronPort-AV: E=Sophos;i="6.04,251,1695711600"; d="scan'208";a="944067918" Received: from abijaz-mobl2.ger.corp.intel.com (HELO box.shutemov.name) ([10.252.61.240]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Dec 2023 16:45:23 -0800 Received: by box.shutemov.name (Postfix, from userid 1000) id 42E3810A440; Tue, 5 Dec 2023 03:45:20 +0300 (+03) 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: [PATCHv4 02/14] x86/apic: Mark acpi_mp_wake_* variables as __ro_after_init Date: Tue, 5 Dec 2023 03:44:58 +0300 Message-ID: <20231205004510.27164-3-kirill.shutemov@linux.intel.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231205004510.27164-1-kirill.shutemov@linux.intel.com> References: <20231205004510.27164-1-kirill.shutemov@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 04 Dec 2023 16:47:01 -0800 (PST) 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 --- 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 f4be492b7e4c..38ffd4524e44 100644 --- a/arch/x86/kernel/acpi/madt_wakeup.c +++ b/arch/x86/kernel/acpi/madt_wakeup.c @@ -5,10 +5,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.41.0