Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 117973
b: refs/heads/master
c: 75bebb7
h: refs/heads/master
i:
  117971: eaea6ae
v: v3
  • Loading branch information
FUJITA Tomonori authored and Ingo Molnar committed Oct 23, 2008
1 parent 690cd1d commit e55d9c3
Show file tree
Hide file tree
Showing 2 changed files with 4 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: a2b89b596c5a0b288adac84b17bdda6bde8d144e
refs/heads/master: 75bebb7f0c2a709812cccb4d3151a21b012c5cad
4 changes: 3 additions & 1 deletion trunk/arch/x86/include/asm/dma-mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -255,9 +255,11 @@ static inline unsigned long dma_alloc_coherent_mask(struct device *dev,

static inline gfp_t dma_alloc_coherent_gfp_flags(struct device *dev, gfp_t gfp)
{
#ifdef CONFIG_X86_64
unsigned long dma_mask = dma_alloc_coherent_mask(dev, gfp);

if (dma_mask <= DMA_24BIT_MASK)
gfp |= GFP_DMA;
#ifdef CONFIG_X86_64
if (dma_mask <= DMA_32BIT_MASK && !(gfp & GFP_DMA))
gfp |= GFP_DMA32;
#endif
Expand Down

0 comments on commit e55d9c3

Please sign in to comment.