processor: remove spin_cpu_yield
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Sat, 8 Jun 2019 09:39:05 +0000 (11:39 +0200)
committerHeiko Carstens <heiko.carstens@de.ibm.com>
Sat, 15 Jun 2019 10:25:49 +0000 (12:25 +0200)
spin_cpu_yield is unused, therefore remove it.

Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
arch/powerpc/include/asm/processor.h
include/linux/processor.h

index ef573fe9873ebf154e0546a6b9ba4747dc306370..a9993e7a443bc501bd0aebd8e9dc82c06ac33414 100644 (file)
@@ -346,8 +346,6 @@ static inline unsigned long __pack_fe01(unsigned int fpmode)
 
 #define spin_cpu_relax()       barrier()
 
-#define spin_cpu_yield()       spin_cpu_relax()
-
 #define spin_end()     HMT_medium()
 
 #define spin_until_cond(cond)                                  \
index dbc952eec86959290fcde991ce6f638d7f471d58..dc78bdc7079a2c61e5aba2a38f905d5bcdcc593e 100644 (file)
 #define spin_cpu_relax() cpu_relax()
 #endif
 
-/*
- * spin_cpu_yield may be called to yield (undirected) to the hypervisor if
- * necessary. This should be used if the wait is expected to take longer
- * than context switch overhead, but we can't sleep or do a directed yield.
- */
-#ifndef spin_cpu_yield
-#define spin_cpu_yield() cpu_relax_yield()
-#endif
-
 #ifndef spin_end
 #define spin_end()
 #endif