Message ID | 1386037658-3161-8-git-send-email-santosh.shilimkar@ti.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Mon, Dec 02, 2013 at 09:27:22PM -0500, Santosh Shilimkar wrote: > From: Grygorii Strashko <grygorii.strashko@ti.com> > > drop WARN and use SMP_CACHE_BYTES as a default alignment in > memblock_alloc_base_nid() as recommended by Tejun Heo in > https://lkml.org/lkml/2013/10/13/117. Can you please add description on why this change is being made? This is in preparation of common alloc interface, right? The patch description is kinda out-of-blue. Thanks.
diff --git a/mm/memblock.c b/mm/memblock.c index 53da534..1d15e07 100644 --- a/mm/memblock.c +++ b/mm/memblock.c @@ -883,8 +883,8 @@ static phys_addr_t __init memblock_alloc_base_nid(phys_addr_t size, { phys_addr_t found; - if (WARN_ON(!align)) - align = __alignof__(long long); + if (!align) + align = SMP_CACHE_BYTES; /* align @size to avoid excessive fragmentation on reserved array */ size = round_up(size, align);