| To: | Andrew Morton <akpm@linux-foundation.org>, Jeff Garzik <jeff@garzik.org>, netdev@vger.kernel.org, linux-mips@linux-mips.org |
|---|---|
| Subject: | [METH] Don't use GFP_DMA for zone allocation. |
| From: | Ralf Baechle <ralf@linux-mips.org> |
| Date: | Wed, 15 Aug 2007 12:53:16 +0100 |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| Sender: | linux-mips-bounce@linux-mips.org |
| User-agent: | Mutt/1.5.14 (2007-02-12) |
IP32 doesn't even have a ZONE_DMA so no point in using GFP_DMA in any
IP32-specific device driver.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
diff --git a/drivers/net/meth.c b/drivers/net/meth.c
index 92b403b..32bed6b 100644
--- a/drivers/net/meth.c
+++ b/drivers/net/meth.c
@@ -405,7 +405,7 @@ static void meth_rx(struct net_device* dev, unsigned long
int_status)
priv->stats.rx_length_errors++;
skb = priv->rx_skbs[priv->rx_write];
} else {
- skb = alloc_skb(METH_RX_BUFF_SIZE, GFP_ATOMIC |
GFP_DMA);
+ skb = alloc_skb(METH_RX_BUFF_SIZE, GFP_ATOMIC);
if (!skb) {
/* Ouch! No memory! Drop packet on the
floor */
DPRINTK("No mem: dropping packet\n");
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH 3/4] Embed zone_id information within the zonelist->zones pointer, Ralf Baechle |
|---|---|
| Next by Date: | Re: [PATCH 3/4] Embed zone_id information within the zonelist->zones pointer, Andi Kleen |
| Previous by Thread: | Re: [PATCH 3/4] Embed zone_id information within the zonelist->zones pointer, Ralf Baechle |
| Next by Thread: | Re: [METH] Don't use GFP_DMA for zone allocation., Jeff Garzik |
| Indexes: | [Date] [Thread] [Top] [All Lists] |