aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2006-09-06 15:34:41 -0400
committerPaul Mackerras <paulus@samba.org>2006-09-13 04:39:52 -0400
commit5a2fe38d2844ba2f2dd8f4946d795e09d8f7e095 (patch)
tree21a995bedd7c7fdca8b2fdb3b7f91f4bfc8228a3 /arch/powerpc
parentb7e89214aadf82fa5eaff28f50f2078fa6ae773c (diff)
[POWERPC] powerpc: Reduce default cacheline size to 64 bytes
Reduce default cacheline size on 64-bit powerpc from 128 bytes to 64. This is the architected minimum. In most cases we'll still end up using cache line information from the device tree, but defaults are used during early boot and doing a few dcbst/icbi's too many there won't do any harm. Signed-off-by: Olof Johansson <olof@lixom.net> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/kernel/head_64.S2
-rw-r--r--arch/powerpc/kernel/setup_64.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/arch/powerpc/kernel/head_64.S b/arch/powerpc/kernel/head_64.S
index e9963d9f335a..3065b472b95d 100644
--- a/arch/powerpc/kernel/head_64.S
+++ b/arch/powerpc/kernel/head_64.S
@@ -1748,7 +1748,7 @@ _STATIC(__after_prom_start)
1748_GLOBAL(copy_and_flush) 1748_GLOBAL(copy_and_flush)
1749 addi r5,r5,-8 1749 addi r5,r5,-8
1750 addi r6,r6,-8 1750 addi r6,r6,-8
17514: li r0,16 /* Use the least common */ 17514: li r0,8 /* Use the smallest common */
1752 /* denominator cache line */ 1752 /* denominator cache line */
1753 /* size. This results in */ 1753 /* size. This results in */
1754 /* extra cache line flushes */ 1754 /* extra cache line flushes */
diff --git a/arch/powerpc/kernel/setup_64.c b/arch/powerpc/kernel/setup_64.c
index 77efe19ccd2c..00d6b8addd78 100644
--- a/arch/powerpc/kernel/setup_64.c
+++ b/arch/powerpc/kernel/setup_64.c
@@ -78,10 +78,10 @@ u64 ppc64_pft_size;
78 * before we've read this from the device tree. 78 * before we've read this from the device tree.
79 */ 79 */
80struct ppc64_caches ppc64_caches = { 80struct ppc64_caches ppc64_caches = {
81 .dline_size = 0x80, 81 .dline_size = 0x40,
82 .log_dline_size = 7, 82 .log_dline_size = 6,
83 .iline_size = 0x80, 83 .iline_size = 0x40,
84 .log_iline_size = 7 84 .log_iline_size = 6
85}; 85};
86EXPORT_SYMBOL_GPL(ppc64_caches); 86EXPORT_SYMBOL_GPL(ppc64_caches);
87 87