* [patch] XPC remove unnecessary GFP_DMA flag
@ 2006-01-24 9:23 Jes Sorensen
0 siblings, 0 replies; only message in thread
From: Jes Sorensen @ 2006-01-24 9:23 UTC (permalink / raw)
To: linux-ia64
Hi,
This patch gets rid of the GFP_DMA flag in the SN2 XPC code, as there
is no real need to set it.
Cheers,
Jes
Remove the GFP_DMA flag from XPC kmalloc() calls.
Signed-off-by: Jes Sorensen <jes@sgi.com>
Acked-by: Dean Nelson <dcn@sgi.com>
----
arch/ia64/sn/kernel/xpc_channel.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
Index: linux-2.6/arch/ia64/sn/kernel/xpc_channel.c
=================================--- linux-2.6.orig/arch/ia64/sn/kernel/xpc_channel.c 2006-01-12 06:39:28.106257339 -0600
+++ linux-2.6/arch/ia64/sn/kernel/xpc_channel.c 2006-01-12 06:33:11.669629026 -0600
@@ -447,7 +447,7 @@
nbytes = nentries * ch->msg_size;
ch->local_msgqueue = xpc_kmalloc_cacheline_aligned(nbytes,
- (GFP_KERNEL | GFP_DMA),
+ GFP_KERNEL,
&ch->local_msgqueue_base);
if (ch->local_msgqueue = NULL) {
continue;
@@ -455,7 +455,7 @@
memset(ch->local_msgqueue, 0, nbytes);
nbytes = nentries * sizeof(struct xpc_notify);
- ch->notify_queue = kmalloc(nbytes, (GFP_KERNEL | GFP_DMA));
+ ch->notify_queue = kmalloc(nbytes, GFP_KERNEL);
if (ch->notify_queue = NULL) {
kfree(ch->local_msgqueue_base);
ch->local_msgqueue = NULL;
@@ -502,7 +502,7 @@
nbytes = nentries * ch->msg_size;
ch->remote_msgqueue = xpc_kmalloc_cacheline_aligned(nbytes,
- (GFP_KERNEL | GFP_DMA),
+ GFP_KERNEL,
&ch->remote_msgqueue_base);
if (ch->remote_msgqueue = NULL) {
continue;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-01-24 9:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-24 9:23 [patch] XPC remove unnecessary GFP_DMA flag Jes Sorensen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox