Skip to content

Commit

Permalink
arch/tile: Do not use GFP_KERNEL for dma_alloc_coherent().
Browse files Browse the repository at this point in the history
Feedback from fujita.tomonori@lab.ntt.co.jp.

Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
  • Loading branch information
Chris Metcalf committed Jun 5, 2010
1 parent 867e359 commit 482e6f8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/tile/kernel/pci-dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ void *dma_alloc_coherent(struct device *dev,
struct page *pg;
dma_addr_t addr;

/* Set GFP_KERNEL to ensure we have memory with a kernel VA. */
gfp |= GFP_KERNEL | __GFP_ZERO;
gfp |= __GFP_ZERO;

/*
* By forcing NUMA node 0 for 32-bit masks we ensure that the
Expand Down

0 comments on commit 482e6f8

Please sign in to comment.