projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b7392d2
)
nios2: Initialize cpuinfo.mmu
author
Walter Goossens
<waltergoossens@home.nl>
Wed, 31 Dec 2014 01:29:07 +0000
(09:29 +0800)
committer
Ley Foon Tan
<lftan@altera.com>
Wed, 31 Dec 2014 02:09:32 +0000
(10:09 +0800)
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>
arch/nios2/kernel/cpuinfo.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/nios2/kernel/cpuinfo.c
b/arch/nios2/kernel/cpuinfo.c
index 51d5bb90d3e504e6b3480bf4cb51be0598d58a22..a223691dff4fb1699c52b3e025ebb6446394fbb0 100644
(file)
--- 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");