x86/asm: Rename rep_nop() to native_pause()
Rename rep_nop() function to what it really does. No functional change intended. Suggested-by: David Laight <david.laight.linux@gmail.com> Signed-off-by: Uros Bizjak <ubizjak@gmail.com> Signed-off-by: Ingo Molnar <mingo@kernel.org> Cc: H. Peter Anvin <hpa@zytor.com> Link: https://lore.kernel.org/r/20250418080805.83679-1-ubizjak@gmail.com
This commit is contained in:
@@ -8,14 +8,14 @@
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
/* 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("pause" ::: "memory");
|
||||
}
|
||||
|
||||
static __always_inline void cpu_relax(void)
|
||||
{
|
||||
rep_nop();
|
||||
native_pause();
|
||||
}
|
||||
|
||||
struct getcpu_cache;
|
||||
|
||||
@@ -1486,7 +1486,7 @@ static void __init delay_with_tsc(void)
|
||||
* 1 GHz == 40 jiffies
|
||||
*/
|
||||
do {
|
||||
rep_nop();
|
||||
native_pause();
|
||||
now = rdtsc();
|
||||
} while ((now - start) < 40000000000ULL / HZ && time_before_eq(jiffies, end));
|
||||
}
|
||||
|
||||
@@ -75,7 +75,7 @@ static void delay_tsc(u64 cycles)
|
||||
|
||||
/* Allow RT tasks to run */
|
||||
preempt_enable();
|
||||
rep_nop();
|
||||
native_pause();
|
||||
preempt_disable();
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user