]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: use pgdat_end_pfn() to simplify the code in arch
authorXishi Qiu <qiuxishi@huawei.com>
Tue, 5 Nov 2013 05:55:26 +0000 (16:55 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 5 Nov 2013 05:55:26 +0000 (16:55 +1100)
commitb8db7042bd3ddc289b5bc8310c82531fee12a812
tree52478cc166d98e1de849643d488a501c54a6577d
parent489a52658833c3b4372717df17d0c71a652601d2
mm: use pgdat_end_pfn() to simplify the code in arch

Use "pgdat_end_pfn()" instead of "pgdat->node_start_pfn +
pgdat->node_spanned_pages".  Simplify the code, no functional change.

Signed-off-by: Xishi Qiu <qiuxishi@huawei.com>
Cc: James Hogan <james.hogan@imgtec.com>
Cc: "Luck, Tony" <tony.luck@intel.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/ia64/mm/init.c
arch/metag/mm/init.c
arch/powerpc/mm/numa.c
arch/sh/mm/init.c