diff options
author | Martin Habets <errandir_news@mph.eclipse.co.uk> | 2007-05-29 10:11:57 +0200 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-05-29 11:51:24 +0200 |
commit | 5f81941c9d47f783e834028dcfb8548809da5a53 (patch) | |
tree | 8d528138012db5f8436a6822c79aea82977a8e90 /arch/sparc | |
parent | [SPARC]: Emulate cmpxchg like parisc (diff) | |
download | linux-5f81941c9d47f783e834028dcfb8548809da5a53.tar.xz linux-5f81941c9d47f783e834028dcfb8548809da5a53.zip |
[SPARC]: Mark as emulating cmpxchg, add appropriate depends for DRM.
The DRM code depends on an atomic version of cmpxchg(), which is not
available on sparc32. Since other platforms besides sparc32 have this
issue a KCONFIG option is added for it.
Signed-off-by: Martin Habets <errandir_news@mph.eclipse.co.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc')
-rw-r--r-- | arch/sparc/Kconfig | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig index bd992c0048f0..fbcc00c6c06e 100644 --- a/arch/sparc/Kconfig +++ b/arch/sparc/Kconfig @@ -178,6 +178,13 @@ config ARCH_HAS_ILOG2_U64 bool default n +config EMULATED_CMPXCHG + bool + default y + help + Sparc32 does not have a CAS instruction like sparc64. cmpxchg() + is emulated, and therefore it is not completely atomic. + config SUN_PM bool default y |