]> git.baikalelectronics.ru Git - kernel.git/commit
[POWERPC] Fix cache line vs. block size confusion
authorBenjamin Herrenschmidt <benh@au1.ibm.com>
Sat, 27 Oct 2007 21:49:28 +0000 (08:49 +1100)
committerPaul Mackerras <paulus@samba.org>
Thu, 8 Nov 2007 03:15:30 +0000 (14:15 +1100)
commit1466b63b45ffa84b351c50f4cf2045729217ca9f
treec2d4c2bd279ea26abe06cb78138558f9273f59e3
parent807cbe0bf6d92f93d6b3e7e39188cb8c4b27d76e
[POWERPC] Fix cache line vs. block size confusion

We had an historical confusion in the kernel between cache line
and cache block size. The former is an implementation detail of
the L1 cache which can be useful for performance optimisations,
the later is the actual size on which the cache control
instructions operate, which can be different.

For some reason, we had a weird hack reading the right property
on powermac and the wrong one on any other 64 bits (32 bits is
unaffected as it only uses the cputable for cache block size
infos at this stage).

This fixes the booting-without-of.txt documentation to mention
the right properties, and fixes the 64 bits initialization code
to look for the block size first, with a fallback to the line
size if the property is missing.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Documentation/powerpc/booting-without-of.txt
arch/powerpc/kernel/setup_64.c