Skip to content

Commit 9c88156

Browse files
ubizjakjmberg-intel
authored andcommitted
um/asm: Rename rep_nop() to native_pause()
Rename rep_nop() function to what it really does. No functional change intended. Signed-off-by: Uros Bizjak <[email protected]> Cc: Richard Weinberger <[email protected]> Cc: Anton Ivanov <[email protected]> Cc: Johannes Berg <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Borislav Petkov <[email protected]> Cc: Dave Hansen <[email protected]> Cc: "H. Peter Anvin" <[email protected]> Cc: David Laight <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Johannes Berg <[email protected]>
1 parent 7633b8b commit 9c88156

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/x86/um/asm/processor.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#include <asm/user.h>
2323

2424
/* REP NOP (PAUSE) is a good thing to insert into busy-wait loops. */
25-
static __always_inline void rep_nop(void)
25+
static __always_inline void native_pause(void)
2626
{
2727
__asm__ __volatile__("rep;nop": : :"memory");
2828
}
@@ -33,7 +33,7 @@ static __always_inline void cpu_relax(void)
3333
time_travel_mode == TT_MODE_EXTERNAL)
3434
time_travel_ndelay(1);
3535
else
36-
rep_nop();
36+
native_pause();
3737
}
3838

3939
#define task_pt_regs(t) (&(t)->thread.regs)

0 commit comments

Comments
 (0)