diff options
author | Leonid Yegoshin <Leonid.Yegoshin@imgtec.com> | 2014-11-24 12:59:44 +0000 |
---|---|---|
committer | Markos Chandras <markos.chandras@imgtec.com> | 2015-02-16 10:01:24 +0000 |
commit | b2498af56af3e0e1bd1866ce2d23cc0efe6c2f90 (patch) | |
tree | d41eccd892481604e10041002262fba6619ef33f /arch/mips/kernel/cpu-probe.c | |
parent | 4695089f03929c8cfa58470faf6e1e041bfb285a (diff) | |
download | op-kernel-dev-b2498af56af3e0e1bd1866ce2d23cc0efe6c2f90.zip op-kernel-dev-b2498af56af3e0e1bd1866ce2d23cc0efe6c2f90.tar.gz |
MIPS: Add MIPS generic QEMU probe support
Add a case in cpu_probe_mips for the MIPS generic QEMU processor ID.
Signed-off-by: Leonid Yegoshin <Leonid.Yegoshin@imgtec.com>
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Diffstat (limited to 'arch/mips/kernel/cpu-probe.c')
-rw-r--r-- | arch/mips/kernel/cpu-probe.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/mips/kernel/cpu-probe.c b/arch/mips/kernel/cpu-probe.c index 228ae86..2e430a2 100644 --- a/arch/mips/kernel/cpu-probe.c +++ b/arch/mips/kernel/cpu-probe.c @@ -898,6 +898,11 @@ static inline void cpu_probe_mips(struct cpuinfo_mips *c, unsigned int cpu) { c->writecombine = _CACHE_UNCACHED_ACCELERATED; switch (c->processor_id & PRID_IMP_MASK) { + case PRID_IMP_QEMU_GENERIC: + c->writecombine = _CACHE_UNCACHED; + c->cputype = CPU_QEMU_GENERIC; + __cpu_name[cpu] = "MIPS GENERIC QEMU"; + break; case PRID_IMP_4KC: c->cputype = CPU_4KC; c->writecombine = _CACHE_UNCACHED; |