From: Jiang Liu Date: Wed, 3 Jul 2013 22:03:41 +0000 (-0700) Subject: mm: introduce helper function mem_init_print_info() to simplify mem_init() X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~17^2~324 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ee3d4e8cd560500192d80ca84d7f15d6dee0807;p=pandora-kernel.git mm: introduce helper function mem_init_print_info() to simplify mem_init() Introduce helper function mem_init_print_info() to simplify mem_init() across different architectures, which also unifies the format and information printed. Function mem_init_print_info() calculates memory statistics information without walking each page, so it should be a little faster on some architectures. Also introduce another helper get_num_physpages() to kill the global variable num_physpages. Signed-off-by: Jiang Liu Cc: Mel Gorman Cc: Michel Lespinasse Cc: Rik van Riel Cc: Minchan Kim Cc: Marek Szyprowski Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed