swiotlb: move the SWIOTLB config symbol to lib/Kconfig
authorChristoph Hellwig <hch@lst.de>
Tue, 24 Apr 2018 07:00:54 +0000 (09:00 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 9 May 2018 04:58:01 +0000 (06:58 +0200)
commit09230cbc1baba68e0ca1e7c489344ce5d35c6f27
treed125ba685e491df0cfb05660e30ece8a84a10643
parent8d9b409b1a42db9986dfe2d510fe7aea7a98a203
swiotlb: move the SWIOTLB config symbol to lib/Kconfig

This way we have one central definition of it, and user can select it as
needed.  The new option is not user visible, which is the behavior
it had in most architectures, with a few notable exceptions:

 - On x86_64 and mips/loongson3 it used to be user selectable, but
   defaulted to y.  It now is unconditional, which seems like the right
   thing for 64-bit architectures without guaranteed availablity of
   IOMMUs.
 - on powerpc the symbol is user selectable and defaults to n, but
   many boards select it.  This change assumes no working setup
   required a manual selection, but if that turned out to be wrong
   we'll have to add another select statement or two for the respective
   boards.

Signed-off-by: Christoph Hellwig <hch@lst.de>
arch/arm/Kconfig
arch/arm64/Kconfig
arch/ia64/Kconfig
arch/mips/Kconfig
arch/mips/cavium-octeon/Kconfig
arch/mips/loongson64/Kconfig
arch/powerpc/Kconfig
arch/unicore32/Kconfig
arch/unicore32/mm/Kconfig
arch/x86/Kconfig
lib/Kconfig