diff options
Diffstat (limited to 'arch/arm/include/asm/memory.h')
-rw-r--r-- | arch/arm/include/asm/memory.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/arch/arm/include/asm/memory.h b/arch/arm/include/asm/memory.h index 431077c5a86..af44a8fb348 100644 --- a/arch/arm/include/asm/memory.h +++ b/arch/arm/include/asm/memory.h | |||
@@ -209,14 +209,10 @@ static inline unsigned long __phys_to_virt(unsigned long x) | |||
209 | * allocations. This must be the smallest DMA mask in the system, | 209 | * allocations. This must be the smallest DMA mask in the system, |
210 | * so a successful GFP_DMA allocation will always satisfy this. | 210 | * so a successful GFP_DMA allocation will always satisfy this. |
211 | */ | 211 | */ |
212 | #ifndef ISA_DMA_THRESHOLD | 212 | #ifndef ARM_DMA_ZONE_SIZE |
213 | #define ISA_DMA_THRESHOLD (0xffffffffULL) | 213 | #define ISA_DMA_THRESHOLD (0xffffffffULL) |
214 | #endif | 214 | #else |
215 | 215 | #define ISA_DMA_THRESHOLD (PHYS_OFFSET + ARM_DMA_ZONE_SIZE - 1) | |
216 | #ifndef arch_adjust_zones | ||
217 | #define arch_adjust_zones(size,holes) do { } while (0) | ||
218 | #elif !defined(CONFIG_ZONE_DMA) | ||
219 | #error "custom arch_adjust_zones() requires CONFIG_ZONE_DMA" | ||
220 | #endif | 216 | #endif |
221 | 217 | ||
222 | /* | 218 | /* |