]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mm: Eliminate unneeded for_each_memblock
authorCody P Schafer <cody@linux.vnet.ibm.com>
Wed, 9 Jan 2013 12:40:18 +0000 (12:40 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 29 Jan 2013 00:34:25 +0000 (11:34 +1100)
commit1ea4fababd591ee2cd22d6b5533a0f06832f127d
treea09eb20075f5b5e9a31ae53c876f3770571829d6
parentbfa781844871f799309b766fc5028c7759a06b0a
powerpc/mm: Eliminate unneeded for_each_memblock

The only persistent change made by this loop is calling
memblock_set_node() once for each memblock, which is not useful (and has
no effect) as memblock_set_node() is not called with any
memblock-specific parameters.

Subsistute a single memblock_set_node().

Signed-off-by: Cody P Schafer <cody@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/mm/mem.c