Home
last modified time | relevance | path

Searched refs:mipspmu (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/arch/mips/kernel/
H A Dperf_event_mipsxx.c94 static struct mips_pmu mipspmu; variable
329 for (i = mipspmu.num_counters - 1; i >= 0; i--) { in mipsxx_pmu_alloc_counter()
354 WARN_ON(idx < 0 || idx >= mipspmu.num_counters); in mipsxx_pmu_enable_event()
400 WARN_ON(idx < 0 || idx >= mipspmu.num_counters); in mipsxx_pmu_disable_event()
431 if (left > mipspmu.max_period) { in mipspmu_event_set_period()
432 left = mipspmu.max_period; in mipspmu_event_set_period()
436 local64_set(&hwc->prev_count, mipspmu.overflow - left); in mipspmu_event_set_period()
442 mipspmu.write_counter(idx, mipspmu.overflow - left); in mipspmu_event_set_period()
458 new_raw_count = mipspmu.read_counter(idx); in mipspmu_event_update()
541 WARN_ON(idx < 0 || idx >= mipspmu.num_counters); in mipspmu_del()
[all …]