summaryrefslogtreecommitdiff
path: root/arch/nios2
diff options
context:
space:
mode:
authorWalter Goossens <waltergoossens@home.nl>2014-12-31 04:29:07 +0300
committerLey Foon Tan <lftan@altera.com>2014-12-31 05:09:32 +0300
commit6f3d2b0075f74ab4f4aeca1622cd71f212a24c46 (patch)
tree121c0531ae437ca82935362f6dbaf886c6f9072e /arch/nios2
parentb7392d2247cfe6771f95d256374f1a8e6a6f48d6 (diff)
downloadlinux-6f3d2b0075f74ab4f4aeca1622cd71f212a24c46.tar.xz
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/nios2')
-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");