Skip to content

Commit

Permalink
m68knommu: mark all RAM as ZONE_DMA
Browse files Browse the repository at this point in the history
There is no reason not to put all RAM in ZONE_DMA for these simple
m68k varients (same as the standard MMU m68k code does). With this
in place the usual dma_alloc_coherent() work as expected.

Signed-off-by: Greg Ungerer <[email protected]>
  • Loading branch information
gregungerer committed Mar 24, 2009
1 parent 8e0ee43 commit dffc9ef
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions arch/m68knommu/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,7 @@ void __init paging_init(void)
{
unsigned long zones_size[MAX_NR_ZONES] = {0, };

zones_size[ZONE_DMA] = 0 >> PAGE_SHIFT;
zones_size[ZONE_NORMAL] = (end_mem - PAGE_OFFSET) >> PAGE_SHIFT;
#ifdef CONFIG_HIGHMEM
zones_size[ZONE_HIGHMEM] = 0;
#endif
zones_size[ZONE_DMA] = (end_mem - PAGE_OFFSET) >> PAGE_SHIFT;
free_area_init(zones_size);
}
}
Expand Down

0 comments on commit dffc9ef

Please sign in to comment.