aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/cpu-probe.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/kernel/cpu-probe.c')
-rw-r--r--arch/mips/kernel/cpu-probe.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/mips/kernel/cpu-probe.c b/arch/mips/kernel/cpu-probe.c
index ba2dbc266d51..cde88285a52f 100644
--- a/arch/mips/kernel/cpu-probe.c
+++ b/arch/mips/kernel/cpu-probe.c
@@ -509,8 +509,7 @@ static inline void decode_configs(struct cpuinfo_mips *c)
509static inline void cpu_probe_mips(struct cpuinfo_mips *c) 509static inline void cpu_probe_mips(struct cpuinfo_mips *c)
510{ 510{
511 decode_configs(c); 511 decode_configs(c);
512 if (cpu_has_tlb) 512 c->options |= MIPS_CPU_4KTLB;
513 c->options |= MIPS_CPU_4KTLB;
514 switch (c->processor_id & 0xff00) { 513 switch (c->processor_id & 0xff00) {
515 case PRID_IMP_4KC: 514 case PRID_IMP_4KC:
516 c->cputype = CPU_4KC; 515 c->cputype = CPU_4KC;
@@ -544,6 +543,7 @@ static inline void cpu_probe_mips(struct cpuinfo_mips *c)
544static inline void cpu_probe_alchemy(struct cpuinfo_mips *c) 543static inline void cpu_probe_alchemy(struct cpuinfo_mips *c)
545{ 544{
546 decode_configs(c); 545 decode_configs(c);
546 c->options |= MIPS_CPU_4KTLB;
547 switch (c->processor_id & 0xff00) { 547 switch (c->processor_id & 0xff00) {
548 case PRID_IMP_AU1_REV1: 548 case PRID_IMP_AU1_REV1:
549 case PRID_IMP_AU1_REV2: 549 case PRID_IMP_AU1_REV2:
@@ -574,6 +574,7 @@ static inline void cpu_probe_alchemy(struct cpuinfo_mips *c)
574static inline void cpu_probe_sibyte(struct cpuinfo_mips *c) 574static inline void cpu_probe_sibyte(struct cpuinfo_mips *c)
575{ 575{
576 decode_configs(c); 576 decode_configs(c);
577 c->options |= MIPS_CPU_4KTLB;
577 switch (c->processor_id & 0xff00) { 578 switch (c->processor_id & 0xff00) {
578 case PRID_IMP_SB1: 579 case PRID_IMP_SB1:
579 c->cputype = CPU_SB1; 580 c->cputype = CPU_SB1;
@@ -588,8 +589,7 @@ static inline void cpu_probe_sibyte(struct cpuinfo_mips *c)
588static inline void cpu_probe_sandcraft(struct cpuinfo_mips *c) 589static inline void cpu_probe_sandcraft(struct cpuinfo_mips *c)
589{ 590{
590 decode_configs(c); 591 decode_configs(c);
591 if (cpu_has_tlb) 592 c->options |= MIPS_CPU_4KTLB;
592 c->options |= MIPS_CPU_4KTLB;
593 switch (c->processor_id & 0xff00) { 593 switch (c->processor_id & 0xff00) {
594 case PRID_IMP_SR71000: 594 case PRID_IMP_SR71000:
595 c->cputype = CPU_SR71000; 595 c->cputype = CPU_SR71000;