x86: Change get_max_mapped() to inline
authorYinghai Lu <yinghai@kernel.org>
Tue, 28 Dec 2010 00:47:54 +0000 (16:47 -0800)
committerH. Peter Anvin <hpa@linux.intel.com>
Wed, 29 Dec 2010 23:47:55 +0000 (15:47 -0800)
commit45635ab5e41bcde94a82f9a05d660ef77fe38c1b
tree921816cb229327b3f14b32275d6ff8dec06f22b5
parent1a4a678b12c84db9ae5dce424e0e97f0559bb57c
x86: Change get_max_mapped() to inline

Move it into head file. to prepare use it in other files.

[ hpa: added missing <linux/types.h> and changed type to phys_addr_t. ]

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
LKML-Reference: <4D1933BA.8000508@kernel.org>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/include/asm/page_types.h
arch/x86/kernel/setup.c