From ca9a18e1de82400d47549d01621a637a0b8765b7 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Wed, 13 May 2009 13:38:50 -0400 Subject: [PATCH] Remove rep_nop() (GPL) Signed-off-by: Mathieu Desnoyers --- arch_x86.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/arch_x86.h b/arch_x86.h index cc3ab01..9e0079d 100644 --- a/arch_x86.h +++ b/arch_x86.h @@ -84,12 +84,6 @@ /* Nop everywhere except on alpha. */ #define smp_read_barrier_depends() -/* REP NOP (PAUSE) is a good thing to insert into busy-wait loops. */ -static inline void rep_nop(void) -{ - asm volatile("rep; nop" ::: "memory"); -} - static inline void cpu_relax(void) { rep_nop(); -- 2.34.1