Skip to content

Commit

Permalink
microblaze: mm: Use ZONE_DMA instead of ZONE_NORMAL
Browse files Browse the repository at this point in the history
We should use ZONE_DMA because all address space is dma-able.

Signed-off-by: Michal Simek <[email protected]>
  • Loading branch information
michalsimek committed Mar 23, 2012
1 parent f7f4786 commit 4e2e412
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 3 additions & 0 deletions arch/microblaze/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ config SWAP
config RWSEM_GENERIC_SPINLOCK
def_bool y

config ZONE_DMA
def_bool y

config RWSEM_XCHGADD_ALGORITHM
bool

Expand Down
6 changes: 1 addition & 5 deletions arch/microblaze/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,7 @@ static void __init paging_init(void)
/* Clean every zones */
memset(zones_size, 0, sizeof(zones_size));

/*
* old: we can DMA to/from any address.put all page into ZONE_DMA
* We use only ZONE_NORMAL
*/
zones_size[ZONE_NORMAL] = max_mapnr;
zones_size[ZONE_DMA] = max_mapnr;

free_area_init(zones_size);
}
Expand Down

0 comments on commit 4e2e412

Please sign in to comment.