From mboxrd@z Thu Jan 1 00:00:00 1970 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 A1736146A6C for ; Fri, 14 Jun 2024 09:59:16 +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=1718359158; cv=none; b=pGrm3N6Pne3EgFf4sNAhmtfyCBiFRvxuUrv4GSZhUT58oPXGLcmsdgOEVDPnwK7G3MeaBrjwQWFWdkcRXMg4GYZ3Xs+9fiml5CX90S7ACMKduA9rqvN2c0RkflEN26AKGioSvdiFtCJ40Ec+eTanxdUHACm/V6ylsSllNL0mlt4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718359158; c=relaxed/simple; bh=+geMXDmdsxY3QYfKxlpxd6Ea9icre7mi5WZps0TSdvs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=sPEYOAWq1Hncci08qtDaTC7t/LdtmHJsNjH3tZfOaPqpR6ivp+ldY+COt8qMsitcbcmYzDnExpdN+zz2n/p07RI5XkYRjyKp+XB/SVf72gFeLufU4M1IyjzdVh7o19omJuz67PtiurNvg1YyNWuKaH3WousTGA7dFh1iriZlCwU= 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=I8Qq+xht; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="I8Qq+xht" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1718359156; x=1749895156; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=+geMXDmdsxY3QYfKxlpxd6Ea9icre7mi5WZps0TSdvs=; b=I8Qq+xhtvnKVtDE0wub1ePDYg/CCBSJvA2XbQ6Y8p+gmd9IVyurcLyDA rHOPh9Kt775e4Vns/P43rj87rqSRebqlsvpk2T/OcAnr+zqQIzN5HEqXR /03rAYtdlxttvHZglpy7XzaqXDgbbVrB+D3sJz9GoeBx7tvgPkqh26OM7 dmmzCZha7yPTZL/hQFc/FBgFYtdjeoD0HK23srmtba1hS6dvdr2xQTL4a +X68PUTWm/VFWLx4DlEhJbY7GJN+56OfgfPpyzCCTUwyl4JzcdQrIiLBc sNwr4PuEIYlNBRt1n9K1NN6b0BQ72dsSToO8QHfZGtlCF6vEWuHDJBf1Y A==; X-CSE-ConnectionGUID: 3JHjQaBhSXO0cKHtMNZb+w== X-CSE-MsgGUID: 5K7KpJgBQsGa3cW9bzNE8A== X-IronPort-AV: E=McAfee;i="6700,10204,11102"; a="15466647" X-IronPort-AV: E=Sophos;i="6.08,237,1712646000"; d="scan'208";a="15466647" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jun 2024 02:59:15 -0700 X-CSE-ConnectionGUID: ETqWasRuS7C7WSAgu/6PSg== X-CSE-MsgGUID: 34eKCLNORKqKc+x+Gz5hXQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,237,1712646000"; d="scan'208";a="77929995" Received: from black.fi.intel.com ([10.237.72.28]) by orviesa001.jf.intel.com with ESMTP; 14 Jun 2024 02:59:10 -0700 Received: by black.fi.intel.com (Postfix, from userid 1000) id 8AE992764; Fri, 14 Jun 2024 12:59:08 +0300 (EEST) 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" , Ard Biesheuvel , Baoquan He , "H. Peter Anvin" , "Kirill A. Shutemov" , "K. Y. Srinivasan" , Haiyang Zhang , kexec@lists.infradead.org, linux-hyperv@vger.kernel.org, linux-acpi@vger.kernel.org, linux-coco@lists.linux.dev, linux-kernel@vger.kernel.org, "Rafael J . Wysocki" , Tao Liu Subject: [PATCHv12 02/19] x86/apic: Mark acpi_mp_wake_* variables as __ro_after_init Date: Fri, 14 Jun 2024 12:58:47 +0300 Message-ID: <20240614095904.1345461-3-kirill.shutemov@linux.intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240614095904.1345461-1-kirill.shutemov@linux.intel.com> References: <20240614095904.1345461-1-kirill.shutemov@linux.intel.com> Precedence: bulk X-Mailing-List: linux-coco@lists.linux.dev 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 Acked-by: Rafael J. Wysocki Reviewed-by: Baoquan He Reviewed-by: Thomas Gleixner Tested-by: Tao Liu --- 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