001-remove_unused_perf_function.patch 354 B

1234567891011121314
  1. --- a/arch/mips/kernel/perf_event_mipsxx.c
  2. +++ b/arch/mips/kernel/perf_event_mipsxx.c
  3. @@ -162,11 +162,6 @@ static unsigned int counters_total_to_pe
  4. return counters >> vpe_shift();
  5. }
  6. -static unsigned int counters_per_cpu_to_total(unsigned int counters)
  7. -{
  8. - return counters << vpe_shift();
  9. -}
  10. -
  11. #else /* !CONFIG_MIPS_MT_SMP */
  12. #define vpe_id() 0