Have a single definition that architetures can select.
Unified · Split
| @@ -17,6 +17,7 @@ config M68K · 16 unmodified lines | |||
| 17 | select HAVE_COPY_THREAD_TLS | 17 | select HAVE_COPY_THREAD_TLS |
| 18 | select GENERIC_IRQ_SHOW | 18 | select GENERIC_IRQ_SHOW |
| 19 | select GENERIC_ATOMIC64 | 19 | select GENERIC_ATOMIC64 |
| 20 | select NO_DMA if !MMU && !COLDFIRE | ||
| 20 | select HAVE_UID16 | 21 | select HAVE_UID16 |
| 21 | select VIRT_TO_BUS | 22 | select VIRT_TO_BUS |
| 22 | select ARCH_HAVE_NMI_SAFE_CMPXCHG if RMW_INSNS | 23 | select ARCH_HAVE_NMI_SAFE_CMPXCHG if RMW_INSNS |
| @@ -60,9 +61,6 @@ config TIME_LOW_RES · 37 unmodified lines | |||
| 60 | config NO_IOPORT_MAP | 61 | config NO_IOPORT_MAP |
| 61 | def_bool y | 62 | def_bool y |
| 62 | 63 | ||
| 63 | config NO_DMA | ||
| 64 | def_bool (MMU && SUN3) || (!MMU && !COLDFIRE) | ||
| 65 | |||
| 66 | config ZONE_DMA | 64 | config ZONE_DMA |
| 67 | bool | 65 | bool |
| 68 | default y | 66 | default y |
| @@ -126,6 +126,7 @@ config SUN3 · 125 unmodified lines | |||
| 126 | depends on MMU | 126 | depends on MMU |
| 127 | depends on !MMU_MOTOROLA | 127 | depends on !MMU_MOTOROLA |
| 128 | select MMU_SUN3 if MMU | 128 | select MMU_SUN3 if MMU |
| 129 | select NO_DMA | ||
| 129 | select M68020 | 130 | select M68020 |
| 130 | help | 131 | help |
| 131 | This option enables support for the Sun 3 series of workstations | 132 | This option enables support for the Sun 3 series of workstations |
| @@ -15,6 +15,7 @@ config UML · 14 unmodified lines | |||
| 15 | select HAVE_DEBUG_KMEMLEAK | 15 | select HAVE_DEBUG_KMEMLEAK |
| 16 | select HAVE_DEBUG_BUGVERBOSE | 16 | select HAVE_DEBUG_BUGVERBOSE |
| 17 | select HAVE_COPY_THREAD_TLS | 17 | select HAVE_COPY_THREAD_TLS |
| 18 | select NO_DMA | ||
| 18 | select GENERIC_IRQ_SHOW | 19 | select GENERIC_IRQ_SHOW |
| 19 | select GENERIC_CPU_DEVICES | 20 | select GENERIC_CPU_DEVICES |
| 20 | select GENERIC_CLOCKEVENTS | 21 | select GENERIC_CLOCKEVENTS |
| @@ -168,9 +169,6 @@ config MMAPPER · 147 unmodified lines | |||
| 168 | This driver allows a host file to be used as emulated IO memory inside | 169 | This driver allows a host file to be used as emulated IO memory inside |
| 169 | UML. | 170 | UML. |
| 170 | 171 | ||
| 171 | config NO_DMA | ||
| 172 | def_bool y | ||
| 173 | |||
| 174 | config PGTABLE_LEVELS | 172 | config PGTABLE_LEVELS |
| 175 | int | 173 | int |
| 176 | default 3 if 3_LEVEL_PGTABLES | 174 | default 3 if 3_LEVEL_PGTABLES |
| @@ -1,5 +1,8 @@ | |||
| 1 | # SPDX-License-Identifier: GPL-2.0-only | 1 | # SPDX-License-Identifier: GPL-2.0-only |
| 2 | 2 | ||
| 3 | config NO_DMA | ||
| 4 | bool | ||
| 5 | |||
| 3 | config HAS_DMA | 6 | config HAS_DMA |
| 4 | bool | 7 | bool |
| 5 | depends on !NO_DMA | 8 | depends on !NO_DMA |