Skip to content

Commit

Permalink
xtensa: remove ZONE_DMA
Browse files Browse the repository at this point in the history
ZONE_DMA is intended for magic < 32-bit pools (usually ISA DMA), which
isn't required on xtensa.  Move all the non-highmem memory into
ZONE_NORMAL instead to match other architectures.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
  • Loading branch information
Christoph Hellwig authored and Max Filippov committed Oct 15, 2018
1 parent 35a7f35 commit fe278d1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions arch/xtensa/Kconfig
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# SPDX-License-Identifier: GPL-2.0
config ZONE_DMA
def_bool y

config XTENSA
def_bool y
select ARCH_HAS_SG_CHAIN
Expand Down
2 changes: 1 addition & 1 deletion arch/xtensa/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ void __init zones_init(void)
{
/* All pages are DMA-able, so we put them all in the DMA zone. */
unsigned long zones_size[MAX_NR_ZONES] = {
[ZONE_DMA] = max_low_pfn - ARCH_PFN_OFFSET,
[ZONE_NORMAL] = max_low_pfn - ARCH_PFN_OFFSET,
#ifdef CONFIG_HIGHMEM
[ZONE_HIGHMEM] = max_pfn - max_low_pfn,
#endif
Expand Down

0 comments on commit fe278d1

Please sign in to comment.