]> git.baikalelectronics.ru Git - kernel.git/commit
mutex: replace CONFIG_HAVE_ARCH_MUTEX_CPU_RELAX with simple ifdef
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Sat, 28 Sep 2013 09:23:59 +0000 (11:23 +0200)
committerHeiko Carstens <heiko.carstens@de.ibm.com>
Sat, 28 Sep 2013 10:46:21 +0000 (12:46 +0200)
commit74e85ed5d6c9c15ed70350b12d7d51307538c417
tree1a760afa3f006b21d2464a226c2792dc59ab845d
parentdb8775a4fedaaf8f9b1b8ad5bf7f1762c03cae96
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>
arch/Kconfig
arch/s390/Kconfig
arch/s390/include/asm/mutex.h
arch/s390/include/asm/processor.h
include/linux/mutex.h