Commit 4673ca8e authored by Michael S. Tsirkin's avatar Michael S. Tsirkin

lib: move GENERIC_IOMAP to lib/Kconfig

define GENERIC_IOMAP in a central location
instead of all architectures. This will be helpful
for the follow-up patch which makes it select
other configs. Code is also a bit shorter this way.
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent caca6a03
...@@ -70,10 +70,6 @@ config GENERIC_ISA_DMA ...@@ -70,10 +70,6 @@ config GENERIC_ISA_DMA
bool bool
default y default y
config GENERIC_IOMAP
bool
default n
source "init/Kconfig" source "init/Kconfig"
source "kernel/Kconfig.freezer" source "kernel/Kconfig.freezer"
......
...@@ -19,10 +19,6 @@ config GENERIC_CMOS_UPDATE ...@@ -19,10 +19,6 @@ config GENERIC_CMOS_UPDATE
config ARCH_USES_GETTIMEOFFSET config ARCH_USES_GETTIMEOFFSET
def_bool n def_bool n
config GENERIC_IOMAP
bool
default y
config ARCH_HAS_ILOG2_U32 config ARCH_HAS_ILOG2_U32
bool bool
default n default n
...@@ -52,6 +48,7 @@ config CRIS ...@@ -52,6 +48,7 @@ config CRIS
select HAVE_IDE select HAVE_IDE
select HAVE_GENERIC_HARDIRQS select HAVE_GENERIC_HARDIRQS
select GENERIC_IRQ_SHOW select GENERIC_IRQ_SHOW
select GENERIC_IOMAP
config HZ config HZ
int int
......
...@@ -26,6 +26,7 @@ config HEXAGON ...@@ -26,6 +26,7 @@ config HEXAGON
select HAVE_ARCH_KGDB select HAVE_ARCH_KGDB
select HAVE_ARCH_TRACEHOOK select HAVE_ARCH_TRACEHOOK
select NO_IOPORT select NO_IOPORT
select GENERIC_IOMAP
# mostly generic routines, with some accelerated ones # mostly generic routines, with some accelerated ones
---help--- ---help---
Qualcomm Hexagon is a processor architecture designed for high Qualcomm Hexagon is a processor architecture designed for high
...@@ -73,9 +74,6 @@ config GENERIC_CSUM ...@@ -73,9 +74,6 @@ config GENERIC_CSUM
config GENERIC_IRQ_PROBE config GENERIC_IRQ_PROBE
def_bool y def_bool y
config GENERIC_IOMAP
def_bool y
#config ZONE_DMA #config ZONE_DMA
# bool # bool
# default y # default y
......
...@@ -29,6 +29,7 @@ config IA64 ...@@ -29,6 +29,7 @@ config IA64
select GENERIC_IRQ_SHOW select GENERIC_IRQ_SHOW
select ARCH_WANT_OPTIONAL_GPIOLIB select ARCH_WANT_OPTIONAL_GPIOLIB
select ARCH_HAVE_NMI_SAFE_CMPXCHG select ARCH_HAVE_NMI_SAFE_CMPXCHG
select GENERIC_IOMAP
default y default y
help help
The Itanium Processor Family is Intel's 64-bit successor to The Itanium Processor Family is Intel's 64-bit successor to
...@@ -102,10 +103,6 @@ config EFI ...@@ -102,10 +103,6 @@ config EFI
bool bool
default y default y
config GENERIC_IOMAP
bool
default y
config ARCH_CLOCKSOURCE_DATA config ARCH_CLOCKSOURCE_DATA
def_bool y def_bool y
......
...@@ -38,9 +38,6 @@ config GENERIC_CALIBRATE_DELAY ...@@ -38,9 +38,6 @@ config GENERIC_CALIBRATE_DELAY
bool bool
default y default y
config GENERIC_IOMAP
def_bool MMU
config TIME_LOW_RES config TIME_LOW_RES
bool bool
default y default y
...@@ -73,6 +70,7 @@ source "kernel/Kconfig.freezer" ...@@ -73,6 +70,7 @@ source "kernel/Kconfig.freezer"
config MMU config MMU
bool "MMU-based Paged Memory Management Support" bool "MMU-based Paged Memory Management Support"
default y default y
select GENERIC_IOMAP
help help
Select if you want MMU-based virtualised addressing space Select if you want MMU-based virtualised addressing space
support by paged memory management. If unsure, say 'Y'. support by paged memory management. If unsure, say 'Y'.
......
...@@ -38,9 +38,6 @@ config RWSEM_XCHGADD_ALGORITHM ...@@ -38,9 +38,6 @@ config RWSEM_XCHGADD_ALGORITHM
config GENERIC_HWEIGHT config GENERIC_HWEIGHT
def_bool y def_bool y
config GENERIC_IOMAP
def_bool y
config NO_IOPORT config NO_IOPORT
def_bool y def_bool y
......
...@@ -175,9 +175,6 @@ config PPC_INDIRECT_MMIO ...@@ -175,9 +175,6 @@ config PPC_INDIRECT_MMIO
config PPC_IO_WORKAROUNDS config PPC_IO_WORKAROUNDS
bool bool
config GENERIC_IOMAP
bool
source "drivers/cpufreq/Kconfig" source "drivers/cpufreq/Kconfig"
menu "CPU Frequency drivers" menu "CPU Frequency drivers"
......
...@@ -4,6 +4,7 @@ config SCORE ...@@ -4,6 +4,7 @@ config SCORE
def_bool y def_bool y
select HAVE_GENERIC_HARDIRQS select HAVE_GENERIC_HARDIRQS
select GENERIC_IRQ_SHOW select GENERIC_IRQ_SHOW
select GENERIC_IOMAP
choice choice
prompt "System type" prompt "System type"
...@@ -33,9 +34,6 @@ endmenu ...@@ -33,9 +34,6 @@ endmenu
config CPU_SCORE7 config CPU_SCORE7
bool bool
config GENERIC_IOMAP
def_bool y
config NO_DMA config NO_DMA
bool bool
default y default y
......
...@@ -84,9 +84,6 @@ config GENERIC_GPIO ...@@ -84,9 +84,6 @@ config GENERIC_GPIO
config GENERIC_CALIBRATE_DELAY config GENERIC_CALIBRATE_DELAY
bool bool
config GENERIC_IOMAP
bool
config GENERIC_CLOCKEVENTS config GENERIC_CLOCKEVENTS
def_bool y def_bool y
......
...@@ -12,6 +12,7 @@ config UNICORE32 ...@@ -12,6 +12,7 @@ config UNICORE32
select GENERIC_IRQ_PROBE select GENERIC_IRQ_PROBE
select GENERIC_IRQ_SHOW select GENERIC_IRQ_SHOW
select ARCH_WANT_FRAME_POINTERS select ARCH_WANT_FRAME_POINTERS
select GENERIC_IOMAP
help help
UniCore-32 is 32-bit Instruction Set Architecture, UniCore-32 is 32-bit Instruction Set Architecture,
including a series of low-power-consumption RISC chip including a series of low-power-consumption RISC chip
...@@ -30,9 +31,6 @@ config GENERIC_CLOCKEVENTS ...@@ -30,9 +31,6 @@ config GENERIC_CLOCKEVENTS
config GENERIC_CSUM config GENERIC_CSUM
def_bool y def_bool y
config GENERIC_IOMAP
def_bool y
config NO_IOPORT config NO_IOPORT
bool bool
......
...@@ -75,6 +75,7 @@ config X86 ...@@ -75,6 +75,7 @@ config X86
select HAVE_BPF_JIT if (X86_64 && NET) select HAVE_BPF_JIT if (X86_64 && NET)
select CLKEVT_I8253 select CLKEVT_I8253
select ARCH_HAVE_NMI_SAFE_CMPXCHG select ARCH_HAVE_NMI_SAFE_CMPXCHG
select GENERIC_IOMAP
config INSTRUCTION_DECODER config INSTRUCTION_DECODER
def_bool (KPROBES || PERF_EVENTS) def_bool (KPROBES || PERF_EVENTS)
...@@ -140,9 +141,6 @@ config NEED_SG_DMA_LENGTH ...@@ -140,9 +141,6 @@ config NEED_SG_DMA_LENGTH
config GENERIC_ISA_DMA config GENERIC_ISA_DMA
def_bool ISA_DMA_API def_bool ISA_DMA_API
config GENERIC_IOMAP
def_bool y
config GENERIC_BUG config GENERIC_BUG
def_bool y def_bool y
depends on BUG depends on BUG
......
...@@ -19,6 +19,9 @@ config RATIONAL ...@@ -19,6 +19,9 @@ config RATIONAL
config GENERIC_FIND_FIRST_BIT config GENERIC_FIND_FIRST_BIT
bool bool
config GENERIC_IOMAP
bool
config CRC_CCITT config CRC_CCITT
tristate "CRC-CCITT functions" tristate "CRC-CCITT functions"
help help
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment