aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2005-05-06 10:31:13 -0400
committerRalf Baechle <ralf@linux-mips.org>2005-10-29 14:31:13 -0400
commitb382fe848345fe626b74a559fa89d2d966d03b02 (patch)
tree37218490821a823b85424c7718d18c6910c8a7f3 /arch
parent4194318c3941fa9cfaa63dfdab9054fcae5e08d3 (diff)
No point in checking cpu_has_tlb before we've computed the CPU options.
So for now we just unconditionally set the option - Linux wouldn't work without a TLB anyway. Setting MIPS_CPU_4KTLB was missing for Alchemy and Sandcraft, add that back. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch')
-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;