aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorWalter Goossens <waltergoossens@home.nl>2014-12-31 09:29:07 +0800
committerLey Foon Tan <lftan@altera.com>2014-12-31 10:09:32 +0800
commit6f3d2b0075f74ab4f4aeca1622cd71f212a24c46 (patch)
tree121c0531ae437ca82935362f6dbaf886c6f9072e /arch
parentLinux 3.19-rc2 (diff)
downloadlinux-dev-6f3d2b0075f74ab4f4aeca1622cd71f212a24c46.tar.xz
linux-dev-6f3d2b0075f74ab4f4aeca1622cd71f212a24c46.zip
nios2: Initialize cpuinfo.mmu
This patch initializes the mmu field of the cpuinfo structure to the value supplied by the devicetree. Signed-off-by: Walter Goossens <waltergoossens@home.nl> Acked-by: Ley Foon Tan <lftan@altera.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/nios2/kernel/cpuinfo.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/nios2/kernel/cpuinfo.c b/arch/nios2/kernel/cpuinfo.c
index 51d5bb90d3e5..a223691dff4f 100644
--- a/arch/nios2/kernel/cpuinfo.c
+++ b/arch/nios2/kernel/cpuinfo.c
@@ -72,6 +72,7 @@ void __init setup_cpuinfo(void)
cpuinfo.has_div = fcpu_has(cpu, "altr,has-div");
cpuinfo.has_mul = fcpu_has(cpu, "altr,has-mul");
cpuinfo.has_mulx = fcpu_has(cpu, "altr,has-mulx");
+ cpuinfo.mmu = fcpu_has(cpu, "altr,has-mmu");
if (IS_ENABLED(CONFIG_NIOS2_HW_DIV_SUPPORT) && !cpuinfo.has_div)
err_cpu("DIV");