mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] S390:  Replace __get_free_pages() with __get_dma_pages().
@ 2007-06-05 20:43 Robert P. J. Day
  0 siblings, 0 replies; only message in thread
From: Robert P. J. Day @ 2007-06-05 20:43 UTC (permalink / raw)
  To: Linux Kernel Mailing List; +Cc: schwidefsky, Andrew Morton


Replace the call to __get_free_pages() with the more specific
__get_dma_pages().

Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>

---

diff --git a/arch/s390/kernel/smp.c b/arch/s390/kernel/smp.c
index 8ff2fea..108e7df 100644
--- a/arch/s390/kernel/smp.c
+++ b/arch/s390/kernel/smp.c
@@ -708,7 +708,7 @@ void __init smp_prepare_cpus(unsigned int max_cpus)

 	for_each_possible_cpu(i) {
 		lowcore_ptr[i] = (struct _lowcore *)
-			__get_free_pages(GFP_KERNEL | GFP_DMA,
+			__get_dma_pages(GFP_KERNEL,
 					 sizeof(void*) == 8 ? 1 : 0);
 		stack = __get_free_pages(GFP_KERNEL, ASYNC_ORDER);
 		if (!lowcore_ptr[i] || !stack)
-- 
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://fsdev.net/wiki/index.php?title=Main_Page
========================================================================

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-06-05 20:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-05 20:43 [PATCH] S390: Replace __get_free_pages() with __get_dma_pages() Robert P. J. Day

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®