diff options
Diffstat (limited to 'arch/mips/kernel/perf_event_mipsxx.c')
| -rw-r--r-- | arch/mips/kernel/perf_event_mipsxx.c | 8 | 
1 files changed, 2 insertions, 6 deletions
diff --git a/arch/mips/kernel/perf_event_mipsxx.c b/arch/mips/kernel/perf_event_mipsxx.c index ab73fa2fb9b..eb5e394a465 100644 --- a/arch/mips/kernel/perf_event_mipsxx.c +++ b/arch/mips/kernel/perf_event_mipsxx.c @@ -162,11 +162,6 @@ static unsigned int counters_total_to_per_cpu(unsigned int counters)  	return counters >> vpe_shift();  } -static unsigned int counters_per_cpu_to_total(unsigned int counters) -{ -	return counters << vpe_shift(); -} -  #else /* !CONFIG_MIPS_MT_SMP */  #define vpe_id()	0 @@ -1532,7 +1527,8 @@ init_hw_perf_events(void)  		irq = MSC01E_INT_BASE + MSC01E_INT_PERFCTR;  	} else {  #endif -		if (cp0_perfcount_irq >= 0) +		if ((cp0_perfcount_irq >= 0) && +				(cp0_compare_irq != cp0_perfcount_irq))  			irq = MIPS_CPU_IRQ_BASE + cp0_perfcount_irq;  		else  			irq = -1;  |