mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 06:00:53 +07:00
[MIPS] Fix timer/performance interrupt detection
Signed-off-by: Chris Dearman <chris@mips.com> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
6fb88ce04f
commit
c3e838a2cb
@ -1372,12 +1372,12 @@ void __init per_cpu_trap_init(void)
|
||||
*/
|
||||
if (cpu_has_mips_r2) {
|
||||
cp0_compare_irq = (read_c0_intctl () >> 29) & 7;
|
||||
cp0_perfcount_irq = -1;
|
||||
cp0_perfcount_irq = (read_c0_intctl () >> 26) & 7;
|
||||
if (cp0_perfcount_irq == cp0_compare_irq)
|
||||
cp0_perfcount_irq = -1;
|
||||
} else {
|
||||
cp0_compare_irq = CP0_LEGACY_COMPARE_IRQ;
|
||||
cp0_perfcount_irq = (read_c0_intctl () >> 26) & 7;
|
||||
if (cp0_perfcount_irq != cp0_compare_irq)
|
||||
cp0_perfcount_irq = -1;
|
||||
cp0_perfcount_irq = -1;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_MIPS_MT_SMTC
|
||||
|
Loading…
Reference in New Issue
Block a user