mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-11-16 03:37:05 +00:00
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>
This commit is contained in:
parent
bf1b61fb57
commit
9df549afea
1 changed files with 4 additions and 9 deletions
|
|
@ -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");
|
DBG(" <- initialize_cache_info()\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -691,15 +695,6 @@ void __init setup_arch(char **cmdline_p)
|
||||||
{
|
{
|
||||||
*cmdline_p = boot_command_line;
|
*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 */
|
/* Reserve large chunks of memory for use by CMA for KVM */
|
||||||
kvm_cma_reserve();
|
kvm_cma_reserve();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue