Skip to contentSkip to conversation

um: use RWSEM_GENERIC_SPINLOCK on x86

PATCH New Richard Weinberger 1 participant 1 message May 23, 2011 User-mode Linux (UML)

lore
Share & tools
lore

Richard Weinberger

author maintainer
#0 lore raw

PATCH v2 1/1 um: use RWSEM_GENERIC_SPINLOCK on x86

Commit d12337 (rwsem: Remove redundant asmregparm annotation) broke rwsem on UML.
As we cannot compile UML with -mregparm=3 and keeping asmregparm only for UML is inadequate the easiest solution is using RWSEM_GENERIC_SPINLOCK.

Thanks to Thomas Gleixner for the idea.

---
 arch/um/Kconfig.x86 |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
arch/um/Kconfig.x86 +2 -2
index a9da516..795ea8e 100644
@@ -29,10 +29,10 @@ config X86_64
 	def_bool 64BIT
 
 config RWSEM_XCHGADD_ALGORITHM
-	def_bool X86_XADD
+	def_bool X86_XADD && 64BIT
 
 config RWSEM_GENERIC_SPINLOCK
-	def_bool !X86_XADD
+	def_bool !RWSEM_XCHGADD_ALGORITHM
 
 config 3_LEVEL_PGTABLES
 	bool "Three-level pagetables (EXPERIMENTAL)" if !64BIT
Signature · 13 lines
1.7.4.2


------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel