diff options
author | Walter Goossens <waltergoossens@home.nl> | 2014-12-30 20:29:07 -0500 |
---|---|---|
committer | Ley Foon Tan <lftan@altera.com> | 2014-12-30 21:09:32 -0500 |
commit | 6f3d2b0075f74ab4f4aeca1622cd71f212a24c46 (patch) | |
tree | 121c0531ae437ca82935362f6dbaf886c6f9072e | |
parent | b7392d2247cfe6771f95d256374f1a8e6a6f48d6 (diff) |
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>
-rw-r--r-- | arch/nios2/kernel/cpuinfo.c | 1 |
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) | |||
72 | cpuinfo.has_div = fcpu_has(cpu, "altr,has-div"); | 72 | cpuinfo.has_div = fcpu_has(cpu, "altr,has-div"); |
73 | cpuinfo.has_mul = fcpu_has(cpu, "altr,has-mul"); | 73 | cpuinfo.has_mul = fcpu_has(cpu, "altr,has-mul"); |
74 | cpuinfo.has_mulx = fcpu_has(cpu, "altr,has-mulx"); | 74 | cpuinfo.has_mulx = fcpu_has(cpu, "altr,has-mulx"); |
75 | cpuinfo.mmu = fcpu_has(cpu, "altr,has-mmu"); | ||
75 | 76 | ||
76 | if (IS_ENABLED(CONFIG_NIOS2_HW_DIV_SUPPORT) && !cpuinfo.has_div) | 77 | if (IS_ENABLED(CONFIG_NIOS2_HW_DIV_SUPPORT) && !cpuinfo.has_div) |
77 | err_cpu("DIV"); | 78 | err_cpu("DIV"); |