Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

processor: remove spin_cpu_yield

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>

-11
-2
arch/powerpc/include/asm/processor.h
··· 346 346 347 347 #define spin_cpu_relax() barrier() 348 348 349 - #define spin_cpu_yield() spin_cpu_relax() 350 - 351 349 #define spin_end() HMT_medium() 352 350 353 351 #define spin_until_cond(cond) \
-9
include/linux/processor.h
··· 32 32 #define spin_cpu_relax() cpu_relax() 33 33 #endif 34 34 35 - /* 36 - * spin_cpu_yield may be called to yield (undirected) to the hypervisor if 37 - * necessary. This should be used if the wait is expected to take longer 38 - * than context switch overhead, but we can't sleep or do a directed yield. 39 - */ 40 - #ifndef spin_cpu_yield 41 - #define spin_cpu_yield() cpu_relax_yield() 42 - #endif 43 - 44 35 #ifndef spin_end 45 36 #define spin_end() 46 37 #endif