diff options
author | John David Anglin <dave.anglin@bell.net> | 2015-10-14 20:32:11 -0400 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2015-10-25 05:01:17 -0400 |
commit | a01fece2e4185ac173abd16d10304d73d47ebf00 (patch) | |
tree | ece0b00c66838ee95d2e83f92bf51b1a2b79a982 | |
parent | c59f419bdd1f056e1ceacbd29f7be7bcff746a5d (diff) |
parisc: Change L1_CACHE_BYTES to 16
Change L1_CACHE_BYTES to 16 bytes.
Tested for 16 days on rp3440.
Additional remarks from Helge Deller:
Saves ~17 kb of kernel code/data and gives a slight performance improvement in
various test cases.
Signed-off-by: John David Anglin <dave.anglin@bell.net>
Signed-off-by: Helge Deller <deller@gmx.de>
-rw-r--r-- | arch/parisc/include/asm/cache.h | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/arch/parisc/include/asm/cache.h b/arch/parisc/include/asm/cache.h index 47f11c707b65..3d0e17bcc8e9 100644 --- a/arch/parisc/include/asm/cache.h +++ b/arch/parisc/include/asm/cache.h | |||
@@ -7,20 +7,12 @@ | |||
7 | 7 | ||
8 | 8 | ||
9 | /* | 9 | /* |
10 | * PA 2.0 processors have 64-byte cachelines; PA 1.1 processors have | 10 | * PA 2.0 processors have 64 and 128-byte L2 cachelines; PA 1.1 processors |
11 | * 32-byte cachelines. The default configuration is not for SMP anyway, | 11 | * have 32-byte cachelines. The L1 length appears to be 16 bytes but this |
12 | * so if you're building for SMP, you should select the appropriate | 12 | * is not clearly documented. |
13 | * processor type. There is a potential livelock danger when running | ||
14 | * a machine with this value set too small, but it's more probable you'll | ||
15 | * just ruin performance. | ||
16 | */ | 13 | */ |
17 | #ifdef CONFIG_PA20 | 14 | #define L1_CACHE_BYTES 16 |
18 | #define L1_CACHE_BYTES 64 | 15 | #define L1_CACHE_SHIFT 4 |
19 | #define L1_CACHE_SHIFT 6 | ||
20 | #else | ||
21 | #define L1_CACHE_BYTES 32 | ||
22 | #define L1_CACHE_SHIFT 5 | ||
23 | #endif | ||
24 | 16 | ||
25 | #ifndef __ASSEMBLY__ | 17 | #ifndef __ASSEMBLY__ |
26 | 18 | ||