MIPS: Unify naming style of vendor CP0.Config6 bits
Other vendor-defined registers use the vendor name as a prefix, not an infix, so unify the naming style of CP0.Config6 bits. Suggested-by: Maciej W. Rozycki" <macro@linux-mips.org> Signed-off-by: Huacai Chen <chenhc@lemote.com> Reviewed-by: Maciej W. Rozycki <macro@linux-mips.org> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
This commit is contained in:

committed by
Thomas Bogendoerfer

父節點
d23c9e0658
當前提交
04ef32aff2
@@ -635,14 +635,14 @@ static int set_ftlb_enable(struct cpuinfo_mips *c, enum ftlb_flags flags)
|
||||
config = read_c0_config6();
|
||||
|
||||
if (flags & FTLB_EN)
|
||||
config |= MIPS_CONF6_MTI_FTLBEN;
|
||||
config |= MTI_CONF6_FTLBEN;
|
||||
else
|
||||
config &= ~MIPS_CONF6_MTI_FTLBEN;
|
||||
config &= ~MTI_CONF6_FTLBEN;
|
||||
|
||||
if (flags & FTLB_SET_PROB) {
|
||||
config &= ~(3 << MIPS_CONF6_MTI_FTLBP_SHIFT);
|
||||
config &= ~(3 << MTI_CONF6_FTLBP_SHIFT);
|
||||
config |= calculate_ftlb_probability(c)
|
||||
<< MIPS_CONF6_MTI_FTLBP_SHIFT;
|
||||
<< MTI_CONF6_FTLBP_SHIFT;
|
||||
}
|
||||
|
||||
write_c0_config6(config);
|
||||
@@ -662,10 +662,10 @@ static int set_ftlb_enable(struct cpuinfo_mips *c, enum ftlb_flags flags)
|
||||
config = read_c0_config6();
|
||||
if (flags & FTLB_EN)
|
||||
/* Enable FTLB */
|
||||
write_c0_config6(config & ~MIPS_CONF6_LOONGSON_FTLBDIS);
|
||||
write_c0_config6(config & ~LOONGSON_CONF6_FTLBDIS);
|
||||
else
|
||||
/* Disable FTLB */
|
||||
write_c0_config6(config | MIPS_CONF6_LOONGSON_FTLBDIS);
|
||||
write_c0_config6(config | LOONGSON_CONF6_FTLBDIS);
|
||||
break;
|
||||
default:
|
||||
return 1;
|
||||
|
Reference in New Issue
Block a user