diff options
author | Yoichi Yuasa <yuasa@linux-mips.org> | 2013-02-21 15:38:19 +0900 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2013-03-12 18:57:52 +0100 |
commit | 9f91e5064c6c24d6ccd760a6b6120de4560d9829 (patch) | |
tree | d9f1c054a70dd5cf0dc93baa3c754e84d8680617 /arch/mips | |
parent | 0c81157b46c533139d6be721d41617020c59a2c3 (diff) | |
download | linux-3.10-9f91e5064c6c24d6ccd760a6b6120de4560d9829.tar.gz linux-3.10-9f91e5064c6c24d6ccd760a6b6120de4560d9829.tar.bz2 linux-3.10-9f91e5064c6c24d6ccd760a6b6120de4560d9829.zip |
MIPS: VR4133: Fix probe for LL/SC.
Signed-off-by: Yoichi Yuasa <yuasa@linux-mips.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/4963/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/kernel/cpu-probe.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/mips/kernel/cpu-probe.c b/arch/mips/kernel/cpu-probe.c index 6bfccc227a9..d069a19112e 100644 --- a/arch/mips/kernel/cpu-probe.c +++ b/arch/mips/kernel/cpu-probe.c @@ -580,6 +580,9 @@ static inline void cpu_probe_legacy(struct cpuinfo_mips *c, unsigned int cpu) c->tlbsize = 48; break; case PRID_IMP_VR41XX: + set_isa(c, MIPS_CPU_ISA_III); + c->options = R4K_OPTS; + c->tlbsize = 32; switch (c->processor_id & 0xf0) { case PRID_REV_VR4111: c->cputype = CPU_VR4111; @@ -604,6 +607,7 @@ static inline void cpu_probe_legacy(struct cpuinfo_mips *c, unsigned int cpu) __cpu_name[cpu] = "NEC VR4131"; } else { c->cputype = CPU_VR4133; + c->options |= MIPS_CPU_LLSC; __cpu_name[cpu] = "NEC VR4133"; } break; @@ -613,9 +617,6 @@ static inline void cpu_probe_legacy(struct cpuinfo_mips *c, unsigned int cpu) __cpu_name[cpu] = "NEC Vr41xx"; break; } - set_isa(c, MIPS_CPU_ISA_III); - c->options = R4K_OPTS; - c->tlbsize = 32; break; case PRID_IMP_R4300: c->cputype = CPU_R4300; |