diff options
author | Yinghai Lu <yinghai@kernel.org> | 2010-12-28 01:47:54 +0100 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2010-12-30 00:47:55 +0100 |
commit | 45635ab5e41bcde94a82f9a05d660ef77fe38c1b (patch) | |
tree | 921816cb229327b3f14b32275d6ff8dec06f22b5 /arch/x86/kernel/setup.c | |
parent | memblock: Make find_memory_core_early() find from top-down (diff) | |
download | linux-45635ab5e41bcde94a82f9a05d660ef77fe38c1b.tar.xz linux-45635ab5e41bcde94a82f9a05d660ef77fe38c1b.zip |
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>
Diffstat (limited to 'arch/x86/kernel/setup.c')
-rw-r--r-- | arch/x86/kernel/setup.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c index df172c1e8238..3def8c9a5dc9 100644 --- a/arch/x86/kernel/setup.c +++ b/arch/x86/kernel/setup.c @@ -669,15 +669,6 @@ static int __init parse_reservelow(char *p) early_param("reservelow", parse_reservelow); -static u64 __init get_max_mapped(void) -{ - u64 end = max_pfn_mapped; - - end <<= PAGE_SHIFT; - - return end; -} - /* * Determine if we were loaded by an EFI loader. If so, then we have also been * passed the efi memmap, systab, etc., so we should use these data structures |