summaryrefslogtreecommitdiff
path: root/arch/x86/lib/delay.c
diff options
context:
space:
mode:
authorUros Bizjak <ubizjak@gmail.com>2025-04-18 10:07:43 +0200
committerIngo Molnar <mingo@kernel.org>2025-04-18 10:19:26 +0200
commit3ce4b1f1f24bbd9f1c349ecb6641dfa038bd0b5a (patch)
tree4d9ad6e43dfc4d8e35dadd31feccbe911be9eb9d /arch/x86/lib/delay.c
parentd109ff4f0bc32de354247a6e8ede3ffc8ef14cd0 (diff)
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
Diffstat (limited to 'arch/x86/lib/delay.c')
-rw-r--r--arch/x86/lib/delay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/lib/delay.c b/arch/x86/lib/delay.c
index e86eda2c0b04..eb2d2e1cbddd 100644
--- a/arch/x86/lib/delay.c
+++ b/arch/x86/lib/delay.c
@@ -75,7 +75,7 @@ static void delay_tsc(u64 cycles)
/* Allow RT tasks to run */
preempt_enable();
- rep_nop();
+ native_pause();
preempt_disable();
/*