Skip to content

Commit

Permalink
powerpc/64: Move setting of {i,d}cache_bsize to initialize_cache_info()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Benjamin Herrenschmidt authored and Michael Ellerman committed Jul 21, 2016
1 parent bf1b61f commit 9df549a
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions arch/powerpc/kernel/setup_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,10 @@ static void __init initialize_cache_info(void)
}
}

/* For use by binfmt_elf */
dcache_bsize = ppc64_caches.dline_size;
icache_bsize = ppc64_caches.iline_size;

DBG(" <- initialize_cache_info()\n");
}

Expand Down Expand Up @@ -691,15 +695,6 @@ void __init setup_arch(char **cmdline_p)
{
*cmdline_p = boot_command_line;

/*
* Set cache line size based on type of cpu as a default.
* Systems with OF can look in the properties on the cpu node(s)
* for a possibly more accurate value.
*/
dcache_bsize = ppc64_caches.dline_size;
icache_bsize = ppc64_caches.iline_size;


/* Reserve large chunks of memory for use by CMA for KVM */
kvm_cma_reserve();

Expand Down

0 comments on commit 9df549a

Please sign in to comment.