From: Tony Luck Date: Sat, 13 Dec 2014 00:54:59 +0000 (-0800) Subject: mm/memblock.c: refactor functions to set/clear MEMBLOCK_HOTPLUG X-Git-Tag: omap-for-v3.20/drop-legacy-3517~97^2~82 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4308ce17f6e1c404276484f6e4e0bf496a95982f;p=pandora-kernel.git mm/memblock.c: refactor functions to set/clear MEMBLOCK_HOTPLUG There is a lot of duplication in the rubric around actually setting or clearing a mem region flag. Create a new helper function to do this and reduce each of memblock_mark_hotplug() and memblock_clear_hotplug() to a single line. This will be useful if someone were to add a new mem region flag - which I hope to be doing some day soon. But it looks like a plausible cleanup even without that - so I'd like to get it out of the way now. Signed-off-by: Tony Luck Cc: Santosh Shilimkar Cc: Tang Chen Cc: Grygorii Strashko Cc: Zhang Yanfei Cc: Philipp Hachtmann Cc: Yinghai Lu Cc: Emil Medve Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed