Commit 53dde5f385bc56e312f78b7cb25ffaf8efd4735d
Committed by
H. Peter Anvin
1 parent
de2a8cf98e
Exists in
master
and in
4 other branches
bootmem: Add alloc_bootmem_align()
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@intel.com> LKML-Reference: <20101116212441.977574826@sbsiddha-MOBL3.sc.intel.com> Acked-by: H. Peter Anvin <hpa@linux.intel.com> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com> Cc: <stable@kernel.org>
Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff
include/linux/bootmem.h
... | ... | @@ -105,6 +105,8 @@ |
105 | 105 | |
106 | 106 | #define alloc_bootmem(x) \ |
107 | 107 | __alloc_bootmem(x, SMP_CACHE_BYTES, __pa(MAX_DMA_ADDRESS)) |
108 | +#define alloc_bootmem_align(x, align) \ | |
109 | + __alloc_bootmem(x, align, __pa(MAX_DMA_ADDRESS)) | |
108 | 110 | #define alloc_bootmem_nopanic(x) \ |
109 | 111 | __alloc_bootmem_nopanic(x, SMP_CACHE_BYTES, __pa(MAX_DMA_ADDRESS)) |
110 | 112 | #define alloc_bootmem_pages(x) \ |