summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/cache.h
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2017-01-09 00:31:46 +0100
committerMichael Ellerman <mpe@ellerman.id.au>2017-02-06 09:46:04 +0100
commit5d451a87e5ebbde18c2b48284778f29d308816c2 (patch)
tree022254fe5c10af8fd5d997df53ce5b7fe15def6e /arch/powerpc/include/asm/cache.h
parentpowerpc/64: Fix naming of cache block vs. cache line (diff)
downloadlinux-5d451a87e5ebbde18c2b48284778f29d308816c2.tar.xz
linux-5d451a87e5ebbde18c2b48284778f29d308816c2.zip
powerpc/64: Retrieve number of L1 cache sets from device-tree
It will be used to calculate the associativity Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/include/asm/cache.h')
-rw-r--r--arch/powerpc/include/asm/cache.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/cache.h b/arch/powerpc/include/asm/cache.h
index 25ee433a8261..1fa364340146 100644
--- a/arch/powerpc/include/asm/cache.h
+++ b/arch/powerpc/include/asm/cache.h
@@ -36,11 +36,13 @@ struct ppc64_caches {
u32 dblock_size; /* L1 d-cache block size */
u32 log_dblock_size;
u32 dblocks_per_page;
+ u32 dsets;
u32 isize; /* L1 i-cache size */
u32 iline_size; /* L1 d-cache line size */
u32 iblock_size; /* L1 i-cache block size */
u32 log_iblock_size;
u32 iblocks_per_page;
+ u32 isets;
};
extern struct ppc64_caches ppc64_caches;