diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2016-07-05 01:04:08 -0400 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2016-07-21 05:08:06 -0400 |
commit | 9df549afeab4ea968b6d83cf9d7a1e3c577a9846 (patch) | |
tree | 936efb31f14bb59aee3e7f8947d0b332716dd8ec /arch/powerpc | |
parent | bf1b61fb574bfe13ab71347389a2ab16f673d24f (diff) |
powerpc/64: Move setting of {i,d}cache_bsize to initialize_cache_info()
Also remove the completely osbolete comment. We *do* look in the
device-tree.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/kernel/setup_64.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/arch/powerpc/kernel/setup_64.c b/arch/powerpc/kernel/setup_64.c index 2395a88b1142..aca215d77fe3 100644 --- a/arch/powerpc/kernel/setup_64.c +++ b/arch/powerpc/kernel/setup_64.c | |||
@@ -473,6 +473,10 @@ static void __init initialize_cache_info(void) | |||
473 | } | 473 | } |
474 | } | 474 | } |
475 | 475 | ||
476 | /* For use by binfmt_elf */ | ||
477 | dcache_bsize = ppc64_caches.dline_size; | ||
478 | icache_bsize = ppc64_caches.iline_size; | ||
479 | |||
476 | DBG(" <- initialize_cache_info()\n"); | 480 | DBG(" <- initialize_cache_info()\n"); |
477 | } | 481 | } |
478 | 482 | ||
@@ -691,15 +695,6 @@ void __init setup_arch(char **cmdline_p) | |||
691 | { | 695 | { |
692 | *cmdline_p = boot_command_line; | 696 | *cmdline_p = boot_command_line; |
693 | 697 | ||
694 | /* | ||
695 | * Set cache line size based on type of cpu as a default. | ||
696 | * Systems with OF can look in the properties on the cpu node(s) | ||
697 | * for a possibly more accurate value. | ||
698 | */ | ||
699 | dcache_bsize = ppc64_caches.dline_size; | ||
700 | icache_bsize = ppc64_caches.iline_size; | ||
701 | |||
702 | |||
703 | /* Reserve large chunks of memory for use by CMA for KVM */ | 698 | /* Reserve large chunks of memory for use by CMA for KVM */ |
704 | kvm_cma_reserve(); | 699 | kvm_cma_reserve(); |
705 | 700 | ||