]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mm: add SECTION_ALIGN_UP() and SECTION_ALIGN_DOWN() macro
authorDaniel Kiper <dkiper@net-space.pl>
Wed, 25 May 2011 00:12:51 +0000 (17:12 -0700)
committerWilly Tarreau <w@1wt.eu>
Fri, 29 Jan 2016 21:12:58 +0000 (22:12 +0100)
commit73734375c75ef304e2b4629bc48af9031be6f672
tree85a27a8c2a6717c24478b89b69fb797e7ac557bd
parent5a7fbabb106b0ba1b30921537f2e5928e153bdf3
mm: add SECTION_ALIGN_UP() and SECTION_ALIGN_DOWN() macro

commit a539f3533b78e39a22723d6d3e1e11b6c14454d9 upstream.

Add SECTION_ALIGN_UP() and SECTION_ALIGN_DOWN() macro which aligns given
pfn to upper section and lower section boundary accordingly.

Required for the latest memory hotplug support for the Xen balloon driver.

Signed-off-by: Daniel Kiper <dkiper@net-space.pl>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
[wt: only needed for next patch]
Signed-off-by: Willy Tarreau <w@1wt.eu>
include/linux/mmzone.h