diff options
author | Yinghai Lu <yinghai@kernel.org> | 2012-11-16 22:39:08 -0500 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2012-11-17 14:59:37 -0500 |
commit | 148b20989e0b83cb301e1fcd9e987c7abde05333 (patch) | |
tree | a60b9f7e59c365a498a2bb47341264b430f70a9f /arch/x86/kernel/setup.c | |
parent | cf47065961b48727b4e47bc3e2e67f4996878437 (diff) |
x86, mm: Move init_gbpages() out of setup.c
Put it in mm/init.c, and call it from probe_page_mask().
init_mem_mapping is calling probe_page_mask at first.
So calling sequence is not changed.
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Link: http://lkml.kernel.org/r/1353123563-3103-32-git-send-email-yinghai@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 | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c index 20151941cce8..85b62f1c8071 100644 --- a/arch/x86/kernel/setup.c +++ b/arch/x86/kernel/setup.c | |||
@@ -282,18 +282,7 @@ void * __init extend_brk(size_t size, size_t align) | |||
282 | return ret; | 282 | return ret; |
283 | } | 283 | } |
284 | 284 | ||
285 | #ifdef CONFIG_X86_64 | 285 | #ifdef CONFIG_X86_32 |
286 | static void __init init_gbpages(void) | ||
287 | { | ||
288 | if (direct_gbpages && cpu_has_gbpages) | ||
289 | printk(KERN_INFO "Using GB pages for direct mapping\n"); | ||
290 | else | ||
291 | direct_gbpages = 0; | ||
292 | } | ||
293 | #else | ||
294 | static inline void init_gbpages(void) | ||
295 | { | ||
296 | } | ||
297 | static void __init cleanup_highmap(void) | 286 | static void __init cleanup_highmap(void) |
298 | { | 287 | { |
299 | } | 288 | } |
@@ -933,8 +922,6 @@ void __init setup_arch(char **cmdline_p) | |||
933 | 922 | ||
934 | setup_real_mode(); | 923 | setup_real_mode(); |
935 | 924 | ||
936 | init_gbpages(); | ||
937 | |||
938 | init_mem_mapping(); | 925 | init_mem_mapping(); |
939 | 926 | ||
940 | memblock.current_limit = get_max_mapped(); | 927 | memblock.current_limit = get_max_mapped(); |