Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp694659lqs; Fri, 14 Jun 2024 03:00:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXMW6G2RNP/nyxiEqh/uKOEwZ5cjBdEsau+ARQz3LzjDTMucyx2ihsBeSLomvMp4mjJNuZeb2plMqQPbz1nLEZrBA7NxAtZau90u8G4FA== X-Google-Smtp-Source: AGHT+IGFlE/EPCvEK0cJ0zylXSfWa24zEWOSjk6tm9AtUS/Q/ZHK6Db3U6CI+Y4NQNu76ncmTgRN X-Received: by 2002:a50:d49a:0:b0:57c:6a05:afd0 with SMTP id 4fb4d7f45d1cf-57cbd8f19abmr1692204a12.14.1718359236426; Fri, 14 Jun 2024 03:00:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718359236; cv=pass; d=google.com; s=arc-20160816; b=CrAzwrgbrOZ7RsoDCsaWm37zj2p7e6PbDtI3Odq0lHg67MhfjRc6x8ijyelpUlF+BH kBE7GL+8AZIs8XjG/K6dcy1c76+CUz7fcEAj/0YH0QVTIiurFUTJcKGVy9ccprzvjEPV 7Nl2m0ywGMa+MOp1Qd8Vjj/vFA5QUa9VTS8MdBaXTdzz/FqwUHAaGMtTzRs3ypLOmFyk 7mDxTDXXazvRQbLDy+v+PoYrSolm5dOQvqJZrsFePi23fRvj8bVIc9q9mZLbTuvcXJbK pDGvCaxuh0DhFkapDHsPq/UMmCcwzISzvZqnKlrP/VkejiOxWORcKLaWEL3fcX+Zv9AC tg4A== 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=AwzRBndUv0lPEpCPvlKVV8b8c6tj4Lnq64QxW/HNplc=; fh=cPmJNda8c601wC/77Nyp+sUEZAven/FLIGVJKzRwPVw=; b=s02JzCJDD6qTIrWS4vI+m32IN+3ar9PsrgMfF0i8QvOjNtCpU6jz4jdAGJr8I0AAIP pnFaYYp8OwjKxQoG3RiFQezIz9Z3MJdCSxLpu5quv0VXfrUt83ywIGtYmrL5aisUKtN3 +8gNfJNAb96pYdNZX3/efZ8WQuvqYcso37/XAQpjAtZX7wbufdcMlUGb9IFseovn7hF7 jkkf0wWZLcApGX47ScGQoRrNZEbTQz5EJgHYuBOrVxleVfg3cIXg23dnHijnjZYniHsO ljEejZXMzEuwBHgiuhzgze+zU6KoTpA0Y+YsUApOjx5K3HhzErgxnbGtwi132nyekM4F vuXg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=NGckCWdP; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-214706-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214706-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 4fb4d7f45d1cf-57cb74476b2si1529214a12.426.2024.06.14.03.00.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 03:00:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-214706-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=NGckCWdP; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-214706-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214706-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 1720C1F27D80 for ; Fri, 14 Jun 2024 10:00:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9A5D6195385; Fri, 14 Jun 2024 09:59:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="NGckCWdP" 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 412A1192B91; Fri, 14 Jun 2024 09:59:18 +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=1718359159; cv=none; b=RyCCjUPhxTtI/ZldebliK2LyJbCZmOD5bwX07k1KVoIooOjbP8V2SuFAKWAcd/5OR7MyaC9WdRufwzQfwMkswIsRp83S1F0q924/IdTaPpKh7E4nwC9HpvCMm+7xz9pWaP7hmcJmq/lKvYUraifWTPLTCq3cUWzSMwG05Lu3fYU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718359159; c=relaxed/simple; bh=+geMXDmdsxY3QYfKxlpxd6Ea9icre7mi5WZps0TSdvs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Pjqen8bmpBNieVJFFneZ/TNZMuEnW+Z+N6YOM2RFIFdcJSFpWSkrffPJE40jaSkM1WVV1jGriqPQewytQEzRN5Ou91wwu8mO6c32irB7rK8Tir5+z+uVvpCsrwEXp7L22tkuF2qi9L+R1ApB2GKkerp7gIyevYiw+MLWWnVTsp8= 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=NGckCWdP; 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=1718359158; x=1749895158; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=+geMXDmdsxY3QYfKxlpxd6Ea9icre7mi5WZps0TSdvs=; b=NGckCWdPhK6PtCzg6vNIULovTSQVyutyRB2yAuaFDjE3fvgHRvSf8VSa srDeaplxUcfVEBcMWV+tvEMlQ6uSJv116bmUkY6Ck6KFVHr/Jic1W8lCR 3NFGnZhXsM3Nvq99k7SezN9j3dMhP47epYBZEfVMotoNxhWam3IwTXXbM w5H8YgWk0A1/oa+JEeJrC4c7kf1QJO8hhmV40h9e7C6Mbn65yxBS1fBZB RRII3JN38BQvS6r0PWEtjxy8HtomMqqsN477gA5CsN4xoNqgMgnE8mHKk vIYdMWjJ24Mn335SExOCizpXCuMTbvYXkEO4qkNkddO9aqiNL4ekDRQy+ g==; X-CSE-ConnectionGUID: nqrYDMzXScOh8+/fNbP4Cw== X-CSE-MsgGUID: XArBg/4QQ1GX/KtaJ1qWSw== X-IronPort-AV: E=McAfee;i="6700,10204,11102"; a="15466649" X-IronPort-AV: E=Sophos;i="6.08,237,1712646000"; d="scan'208";a="15466649" 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-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 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