diff options
author | Leonid Yegoshin <Leonid.Yegoshin@imgtec.com> | 2014-11-24 07:59:44 -0500 |
---|---|---|
committer | Markos Chandras <markos.chandras@imgtec.com> | 2015-02-16 05:01:24 -0500 |
commit | b2498af56af3e0e1bd1866ce2d23cc0efe6c2f90 (patch) | |
tree | d41eccd892481604e10041002262fba6619ef33f /arch/mips/kernel/cpu-probe.c | |
parent | 4695089f03929c8cfa58470faf6e1e041bfb285a (diff) |
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 228ae864c92e..2e430a2daec2 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) | |||
898 | { | 898 | { |
899 | c->writecombine = _CACHE_UNCACHED_ACCELERATED; | 899 | c->writecombine = _CACHE_UNCACHED_ACCELERATED; |
900 | switch (c->processor_id & PRID_IMP_MASK) { | 900 | switch (c->processor_id & PRID_IMP_MASK) { |
901 | case PRID_IMP_QEMU_GENERIC: | ||
902 | c->writecombine = _CACHE_UNCACHED; | ||
903 | c->cputype = CPU_QEMU_GENERIC; | ||
904 | __cpu_name[cpu] = "MIPS GENERIC QEMU"; | ||
905 | break; | ||
901 | case PRID_IMP_4KC: | 906 | case PRID_IMP_4KC: |
902 | c->cputype = CPU_4KC; | 907 | c->cputype = CPU_4KC; |
903 | c->writecombine = _CACHE_UNCACHED; | 908 | c->writecombine = _CACHE_UNCACHED; |