Commit 6f3d2b0075f74ab4f4aeca1622cd71f212a24c46
Committed by
Ley Foon Tan
1 parent
b7392d2247
Exists in
ti-lsk-linux-4.1.y
and in
10 other branches
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>
Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff
arch/nios2/kernel/cpuinfo.c
... | ... | @@ -72,6 +72,7 @@ |
72 | 72 | cpuinfo.has_div = fcpu_has(cpu, "altr,has-div"); |
73 | 73 | cpuinfo.has_mul = fcpu_has(cpu, "altr,has-mul"); |
74 | 74 | cpuinfo.has_mulx = fcpu_has(cpu, "altr,has-mulx"); |
75 | + cpuinfo.mmu = fcpu_has(cpu, "altr,has-mmu"); | |
75 | 76 | |
76 | 77 | if (IS_ENABLED(CONFIG_NIOS2_HW_DIV_SUPPORT) && !cpuinfo.has_div) |
77 | 78 | err_cpu("DIV"); |