@@ -1531,39 +1531,39 @@ static int __mcheck_cpu_apply_quirks(struct cpuinfo_x86 *c)
1531
1531
* Various K7s with broken bank 0 around. Always disable
1532
1532
* by default.
1533
1533
*/
1534
- if (c -> x86 == 6 && cfg -> banks > 0 )
1534
+ if (c -> x86 == 6 && cfg -> banks > 0 )
1535
1535
mce_banks [0 ].ctl = 0 ;
1536
1536
1537
- /*
1538
- * Turn off MC4_MISC thresholding banks on those models since
1539
- * they're not supported there.
1540
- */
1541
- if (c -> x86 == 0x15 &&
1542
- (c -> x86_model >= 0x10 && c -> x86_model <= 0x1f )) {
1543
- int i ;
1544
- u64 hwcr ;
1545
- bool need_toggle ;
1546
- u32 msrs [] = {
1537
+ /*
1538
+ * Turn off MC4_MISC thresholding banks on those models since
1539
+ * they're not supported there.
1540
+ */
1541
+ if (c -> x86 == 0x15 &&
1542
+ (c -> x86_model >= 0x10 && c -> x86_model <= 0x1f )) {
1543
+ int i ;
1544
+ u64 hwcr ;
1545
+ bool need_toggle ;
1546
+ u32 msrs [] = {
1547
1547
0x00000413 , /* MC4_MISC0 */
1548
1548
0xc0000408 , /* MC4_MISC1 */
1549
- };
1549
+ };
1550
1550
1551
- rdmsrl (MSR_K7_HWCR , hwcr );
1551
+ rdmsrl (MSR_K7_HWCR , hwcr );
1552
1552
1553
- /* McStatusWrEn has to be set */
1554
- need_toggle = !(hwcr & BIT (18 ));
1553
+ /* McStatusWrEn has to be set */
1554
+ need_toggle = !(hwcr & BIT (18 ));
1555
1555
1556
- if (need_toggle )
1557
- wrmsrl (MSR_K7_HWCR , hwcr | BIT (18 ));
1556
+ if (need_toggle )
1557
+ wrmsrl (MSR_K7_HWCR , hwcr | BIT (18 ));
1558
1558
1559
- /* Clear CntP bit safely */
1560
- for (i = 0 ; i < ARRAY_SIZE (msrs ); i ++ )
1561
- msr_clear_bit (msrs [i ], 62 );
1559
+ /* Clear CntP bit safely */
1560
+ for (i = 0 ; i < ARRAY_SIZE (msrs ); i ++ )
1561
+ msr_clear_bit (msrs [i ], 62 );
1562
1562
1563
- /* restore old settings */
1564
- if (need_toggle )
1565
- wrmsrl (MSR_K7_HWCR , hwcr );
1566
- }
1563
+ /* restore old settings */
1564
+ if (need_toggle )
1565
+ wrmsrl (MSR_K7_HWCR , hwcr );
1566
+ }
1567
1567
}
1568
1568
1569
1569
if (c -> x86_vendor == X86_VENDOR_INTEL ) {
0 commit comments