parisc: merge pcx_dma_ops and pcxl_dma_ops
The only difference is that pcxl supports dma coherent allocations, while pcx only supports non-consistent allocations and otherwise fails. But dma_alloc* is not in the fast path, and merging these two allows an easy migration path to the generic dma-noncoherent implementation, so do it. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:

committed by
Helge Deller

parent
94710cac0e
commit
a34a9b9682
@@ -19,7 +19,6 @@
|
||||
#include <linux/gfp.h>
|
||||
#include <linux/delay.h>
|
||||
#include <linux/init.h>
|
||||
#include <linux/pci.h> /* for hppa_dma_ops and pcxl_dma_ops */
|
||||
#include <linux/initrd.h>
|
||||
#include <linux/swap.h>
|
||||
#include <linux/unistd.h>
|
||||
@@ -616,17 +615,13 @@ void __init mem_init(void)
|
||||
free_all_bootmem();
|
||||
|
||||
#ifdef CONFIG_PA11
|
||||
if (hppa_dma_ops == &pcxl_dma_ops) {
|
||||
if (boot_cpu_data.cpu_type == pcxl2 || boot_cpu_data.cpu_type == pcxl) {
|
||||
pcxl_dma_start = (unsigned long)SET_MAP_OFFSET(MAP_START);
|
||||
parisc_vmalloc_start = SET_MAP_OFFSET(pcxl_dma_start
|
||||
+ PCXL_DMA_MAP_SIZE);
|
||||
} else {
|
||||
pcxl_dma_start = 0;
|
||||
parisc_vmalloc_start = SET_MAP_OFFSET(MAP_START);
|
||||
}
|
||||
#else
|
||||
parisc_vmalloc_start = SET_MAP_OFFSET(MAP_START);
|
||||
} else
|
||||
#endif
|
||||
parisc_vmalloc_start = SET_MAP_OFFSET(MAP_START);
|
||||
|
||||
mem_init_print_info(NULL);
|
||||
|
||||
|
Reference in New Issue
Block a user