[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Tue, 1 Feb 2011 16:43:38 -0800 (PST)
From: Andi Kleen <andi@...stfloor.org>
To: suresh.b.siddha@...el.com, ak@...ux.intel.com, hpa@...ux.intel.com,
gregkh@...e.de, linux-kernel@...r.kernel.org, stable@...nel.org
Subject: [PATCH] [24/139] bootmem: Add alloc_bootmem_align()
2.6.35-longterm review patch. If anyone has any objections, please let me know.
------------------
From: Suresh Siddha <suresh.b.siddha@...el.com>
commit 53dde5f385bc56e312f78b7cb25ffaf8efd4735d upstream.
Add an alloc_bootmem_align() interface to allocate bootmem with
specified alignment. This is necessary to be able to allocate the
xsave area in a subsequent patch.
Signed-off-by: Suresh Siddha <suresh.b.siddha@...el.com>
Signed-off-by: Andi Kleen <ak@...ux.intel.com>
LKML-Reference: <20101116212441.977574826@...iddha-MOBL3.sc.intel.com>
Acked-by: H. Peter Anvin <hpa@...ux.intel.com>
Signed-off-by: H. Peter Anvin <hpa@...ux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@...e.de>
---
include/linux/bootmem.h | 2 ++
1 file changed, 2 insertions(+)
Index: linux-2.6.35.y/include/linux/bootmem.h
===================================================================
--- linux-2.6.35.y.orig/include/linux/bootmem.h
+++ linux-2.6.35.y/include/linux/bootmem.h
@@ -105,6 +105,8 @@ extern void *__alloc_bootmem_low_node(pg
#define alloc_bootmem(x) \
__alloc_bootmem(x, SMP_CACHE_BYTES, __pa(MAX_DMA_ADDRESS))
+#define alloc_bootmem_align(x, align) \
+ __alloc_bootmem(x, align, __pa(MAX_DMA_ADDRESS))
#define alloc_bootmem_nopanic(x) \
__alloc_bootmem_nopanic(x, SMP_CACHE_BYTES, __pa(MAX_DMA_ADDRESS))
#define alloc_bootmem_pages(x) \
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists