Skip to content

Commit 24dd05d

Browse files
kirylbp3tk0v
authored andcommitted
x86/apic: Mark acpi_mp_wake_* variables as __ro_after_init
acpi_mp_wake_mailbox_paddr and acpi_mp_wake_mailbox are initialized once during ACPI MADT init and never changed. Signed-off-by: Kirill A. Shutemov <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]> Reviewed-by: Baoquan He <[email protected]> Reviewed-by: Thomas Gleixner <[email protected]> Acked-by: Kai Huang <[email protected]> Acked-by: Rafael J. Wysocki <[email protected]> Tested-by: Tao Liu <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 2b5e22a commit 24dd05d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/x86/kernel/acpi/madt_wakeup.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
#include <asm/processor.h>
77

88
/* Physical address of the Multiprocessor Wakeup Structure mailbox */
9-
static u64 acpi_mp_wake_mailbox_paddr;
9+
static u64 acpi_mp_wake_mailbox_paddr __ro_after_init;
1010

1111
/* Virtual address of the Multiprocessor Wakeup Structure mailbox */
12-
static struct acpi_madt_multiproc_wakeup_mailbox *acpi_mp_wake_mailbox;
12+
static struct acpi_madt_multiproc_wakeup_mailbox *acpi_mp_wake_mailbox __ro_after_init;
1313

1414
static int acpi_wakeup_cpu(u32 apicid, unsigned long start_ip)
1515
{

0 commit comments

Comments
 (0)