]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
um/asm: Rename rep_nop() to native_pause()
authorUros Bizjak <ubizjak@gmail.com>
Fri, 18 Apr 2025 08:33:58 +0000 (10:33 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 5 May 2025 08:26:34 +0000 (10:26 +0200)
Rename rep_nop() function to what it really does.

No functional change intended.

Signed-off-by: Uros Bizjak <ubizjak@gmail.com>
Cc: Richard Weinberger <richard@nod.at>
Cc: Anton Ivanov <anton.ivanov@cambridgegreys.com>
Cc: Johannes Berg <johannes@sipsolutions.net>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: David Laight <david.laight.linux@gmail.com>
Link: https://patch.msgid.link/20250418083436.133148-1-ubizjak@gmail.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
arch/x86/um/asm/processor.h

index 478710384b340fe2ec28133c26dda88ca56fec11..d50549e0089c0afa4d0924a3a324feb4325bae98 100644 (file)
@@ -22,7 +22,7 @@
 #include <asm/user.h>
 
 /* REP NOP (PAUSE) is a good thing to insert into busy-wait loops. */
-static __always_inline void rep_nop(void)
+static __always_inline void native_pause(void)
 {
        __asm__ __volatile__("rep;nop": : :"memory");
 }
@@ -33,7 +33,7 @@ static __always_inline void cpu_relax(void)
            time_travel_mode == TT_MODE_EXTERNAL)
                time_travel_ndelay(1);
        else
-               rep_nop();
+               native_pause();
 }
 
 #define task_pt_regs(t) (&(t)->thread.regs)