diff options
author | Walter Goossens <waltergoossens@home.nl> | 2014-12-31 09:29:07 +0800 |
---|---|---|
committer | Ley Foon Tan <lftan@altera.com> | 2014-12-31 10:09:32 +0800 |
commit | 6f3d2b0075f74ab4f4aeca1622cd71f212a24c46 (patch) | |
tree | 121c0531ae437ca82935362f6dbaf886c6f9072e /arch/nios2 | |
parent | b7392d2247cfe6771f95d256374f1a8e6a6f48d6 (diff) | |
download | linux-stable-6f3d2b0075f74ab4f4aeca1622cd71f212a24c46.tar.gz linux-stable-6f3d2b0075f74ab4f4aeca1622cd71f212a24c46.tar.bz2 linux-stable-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/nios2')
-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) 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"); |