From: Uros Bizjak Date: Fri, 18 Apr 2025 08:33:59 +0000 (+0200) Subject: um/asm: Replace "REP; NOP" with PAUSE mnemonic X-Git-Tag: v6.16-rc1~38^2~19 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=304c9f7f8f439083c56846c4433fbab7467eb01e;p=thirdparty%2Fkernel%2Fstable.git um/asm: Replace "REP; NOP" with PAUSE mnemonic Current minimum required version of binutils is 2.25, which supports PAUSE instruction mnemonic. Replace "REP; NOP" with this proper mnemonic. No functional change intended. Signed-off-by: Uros Bizjak Cc: Richard Weinberger Cc: Anton Ivanov Cc: Johannes Berg Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: Dave Hansen Cc: "H. Peter Anvin" Cc: David Laight Link: https://patch.msgid.link/20250418083436.133148-2-ubizjak@gmail.com Signed-off-by: Johannes Berg --- diff --git a/arch/x86/um/asm/processor.h b/arch/x86/um/asm/processor.h index d50549e0089c0..e222d2ae28fd7 100644 --- a/arch/x86/um/asm/processor.h +++ b/arch/x86/um/asm/processor.h @@ -21,10 +21,10 @@ #include -/* REP NOP (PAUSE) is a good thing to insert into busy-wait loops. */ +/* PAUSE is a good thing to insert into busy-wait loops. */ static __always_inline void native_pause(void) { - __asm__ __volatile__("rep;nop": : :"memory"); + __asm__ __volatile__("pause": : :"memory"); } static __always_inline void cpu_relax(void)