summaryrefslogtreecommitdiff
path: root/arch/openrisc/include
diff options
context:
space:
mode:
authorStefan Kristiansson <stefan.kristiansson@saunalahti.fi>2013-04-27 22:02:32 +0400
committerStafford Horne <shorne@gmail.com>2017-02-06 15:50:41 +0300
commit3e06a16339303016b2c57b350a15afeaa7ba7813 (patch)
tree50c37ae52646d26a40c56e8b34d7453ee52e0af4 /arch/openrisc/include
parentc0fcaf554ed9b65477576439e8de63578d731070 (diff)
downloadlinux-3e06a16339303016b2c57b350a15afeaa7ba7813.tar.xz
openrisc: add cache way information to cpuinfo
Motivation for this is to be able to print the way information properly in print_cpuinfo(), instead of hardcoding it to one. Signed-off-by: Stefan Kristiansson <stefan.kristiansson@saunalahti.fi> Signed-off-by: Jonas Bonn <jonas@southpole.se> [shorne@gmail.com fixed conflict with show_cpuinfo change] Signed-off-by: Stafford Horne <shorne@gmail.com>
Diffstat (limited to 'arch/openrisc/include')
-rw-r--r--arch/openrisc/include/asm/cpuinfo.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/openrisc/include/asm/cpuinfo.h b/arch/openrisc/include/asm/cpuinfo.h
index 917318b6a970..ec10679d6429 100644
--- a/arch/openrisc/include/asm/cpuinfo.h
+++ b/arch/openrisc/include/asm/cpuinfo.h
@@ -24,9 +24,11 @@ struct cpuinfo {
u32 icache_size;
u32 icache_block_size;
+ u32 icache_ways;
u32 dcache_size;
u32 dcache_block_size;
+ u32 dcache_ways;
};
extern struct cpuinfo cpuinfo;