Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 138905
b: refs/heads/master
c: 97d9800
h: refs/heads/master
i:
  138903: 56fce3b
v: v3
  • Loading branch information
FUJITA Tomonori authored and Ingo Molnar committed Jan 29, 2009
1 parent 1c644af commit 248d151
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fb4467274de0c93e15c4a4fd3249d62454ba57dc
refs/heads/master: 97d9800de9df9c6e71b00c0a26239c7d7f6a46c4
10 changes: 9 additions & 1 deletion trunk/arch/ia64/kernel/pci-swiotlb.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,16 @@
int swiotlb __read_mostly;
EXPORT_SYMBOL(swiotlb);

static void *ia64_swiotlb_alloc_coherent(struct device *dev, size_t size,
dma_addr_t *dma_handle, gfp_t gfp)
{
if (dev->coherent_dma_mask != DMA_64BIT_MASK)
gfp |= GFP_DMA;
return swiotlb_alloc_coherent(dev, size, dma_handle, gfp);
}

struct dma_map_ops swiotlb_dma_ops = {
.alloc_coherent = swiotlb_alloc_coherent,
.alloc_coherent = ia64_swiotlb_alloc_coherent,
.free_coherent = swiotlb_free_coherent,
.map_page = swiotlb_map_page,
.unmap_page = swiotlb_unmap_page,
Expand Down

0 comments on commit 248d151

Please sign in to comment.