History

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.

Suresh Siddha committed 15 years ago

Commit 53dde5f1 parent de2a8cf1 file · +2 −0Browse files

Showing the changes to include/linux (1 of 1 file). Show all

Unified · Split

include/linux/bootmem.h+2−0
@@ -105,6 +105,8 @@ extern void *__alloc_bootmem_low_node(pg_data_t *pgdat, · 104 unmodified lines
105105
106106 #define alloc_bootmem(x) \
107107 __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))
108110 #define alloc_bootmem_nopanic(x) \
109111 __alloc_bootmem_nopanic(x, SMP_CACHE_BYTES, __pa(MAX_DMA_ADDRESS))
110112 #define alloc_bootmem_pages(x) \