[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20260203175821.511847-3-brgerst@gmail.com>
Date: Tue, 3 Feb 2026 12:58:19 -0500
From: Brian Gerst <brgerst@...il.com>
To: linux-kernel@...r.kernel.org,
x86@...nel.org
Cc: Ingo Molnar <mingo@...nel.org>,
"H . Peter Anvin" <hpa@...or.com>,
Thomas Gleixner <tglx@...utronix.de>,
Borislav Petkov <bp@...en8.de>,
Ard Biesheuvel <ardb@...nel.org>,
"Rafael J . Wysocki" <rafael@...nel.org>,
Len Brown <lenb@...nel.org>,
Pavel Machek <pavel@...nel.org>,
Brian Gerst <brgerst@...il.com>
Subject: [PATCH v2 2/4] x86/acpi/suspend: Remove segment reloads on resume
common_startup_64() has set the segments to usable values already, and
they will be restored later in restore_processor_state(). Remove the
redundant segment loads in wakeup_long64()..
Signed-off-by: Brian Gerst <brgerst@...il.com>
---
arch/x86/kernel/acpi/wakeup_64.S | 6 ------
1 file changed, 6 deletions(-)
diff --git a/arch/x86/kernel/acpi/wakeup_64.S b/arch/x86/kernel/acpi/wakeup_64.S
index 3d56610f0108..099401ef2ea4 100644
--- a/arch/x86/kernel/acpi/wakeup_64.S
+++ b/arch/x86/kernel/acpi/wakeup_64.S
@@ -28,12 +28,6 @@ SYM_FUNC_START(wakeup_long64)
1:
jmp 1b
2:
- movw $__KERNEL_DS, %ax
- movw %ax, %ss
- movw %ax, %ds
- movw %ax, %es
- movw %ax, %fs
- movw %ax, %gs
movq saved_rsp(%rip), %rsp
movq saved_rbx(%rip), %rbx
--
2.52.0
Powered by blists - more mailing lists