Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 23a781e9 authored by Andy Lutomirski's avatar Andy Lutomirski Committed by Ingo Molnar
Browse files

x86/nmi/64: Minor asm simplification



Replace LEA; MOV with an equivalent SUB.  This saves one
instruction.

Signed-off-by: default avatarAndy Lutomirski <luto@kernel.org>
Reviewed-by: default avatarSteven Rostedt <rostedt@goodmis.org>
Cc: Borislav Petkov <bp@suse.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent 810bc075
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1420,8 +1420,7 @@ nested_nmi:
	 * Modify the "iret" frame to point to repeat_nmi, forcing another
	 * iteration of NMI handling.
	 */
	leaq	-1*8(%rsp), %rdx
	movq	%rdx, %rsp
	subq	$8, %rsp
	leaq	-10*8(%rsp), %rdx
	pushq	$__KERNEL_DS
	pushq	%rdx