mutex: replace CONFIG_HAVE_ARCH_MUTEX_CPU_RELAX with simple ifdef
Linus suggested to replace #ifndef CONFIG_HAVE_ARCH_MUTEX_CPU_RELAX #define arch_mutex_cpu_relax() cpu_relax() #endif with just a simple #ifndef arch_mutex_cpu_relax # define arch_mutex_cpu_relax() cpu_relax() #endif to get rid of CONFIG_HAVE_CPU_RELAX_SIMPLE. So architectures can simply define arch_mutex_cpu_relax if they want an architecture specific function instead of having to add a select statement in their Kconfig in addition. Suggested-by:Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by:
Heiko Carstens <heiko.carstens@de.ibm.com>
Showing
- arch/Kconfig 0 additions, 3 deletionsarch/Kconfig
- arch/s390/Kconfig 0 additions, 1 deletionarch/s390/Kconfig
- arch/s390/include/asm/mutex.h 0 additions, 2 deletionsarch/s390/include/asm/mutex.h
- arch/s390/include/asm/processor.h 2 additions, 0 deletionsarch/s390/include/asm/processor.h
- include/linux/mutex.h 3 additions, 3 deletionsinclude/linux/mutex.h
Loading
Please register or sign in to comment