powerpc/64: drop redundant defination of spin_until_cond
authorSudeep Holla <sudeep.holla@arm.com>
Fri, 11 Jun 2021 19:10:57 +0000 (19:10 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 16 Jun 2021 14:09:11 +0000 (00:09 +1000)
linux/processor.h has exactly same defination for spin_until_cond.
Drop the redundant defination in asm/processor.h

Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/1fff2054e5dfc00329804dbd3f2a91667c9a8aff.1623438544.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/processor.h

index aeb1a35163d16e2a152e428cbdaa7f63907a56cc..f348e564f7dd5407737aad61e785fb023c2a51f8 100644 (file)
@@ -347,17 +347,6 @@ static inline unsigned long __pack_fe01(unsigned int fpmode)
 
 #define spin_end()     HMT_medium()
 
-#define spin_until_cond(cond)                                  \
-do {                                                           \
-       if (unlikely(!(cond))) {                                \
-               spin_begin();                                   \
-               do {                                            \
-                       spin_cpu_relax();                       \
-               } while (!(cond));                              \
-               spin_end();                                     \
-       }                                                       \
-} while (0)
-
 #endif
 
 /* Check that a certain kernel stack pointer is valid in task_struct p */