Home
last modified time | relevance | path

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

/arch/arm/mach-imx/
Dmmdc.c101 unsigned int active_events; member
374 pmu_mmdc->active_events++; in mmdc_pmu_event_add()
403 pmu_mmdc->active_events--; in mmdc_pmu_event_del()
405 if (pmu_mmdc->active_events == 0) in mmdc_pmu_event_del()
451 .active_events = 0, in mmdc_pmu_init()
/arch/nds32/kernel/
Dperf_event_cpu.c861 atomic_t *active_events = &nds32_pmu->active_events; in nds32_pmu_event_init() local
870 if (!atomic_inc_not_zero(active_events)) { in nds32_pmu_event_init()
871 if (atomic_read(active_events) == 0) { in nds32_pmu_event_init()
877 atomic_inc(active_events); in nds32_pmu_event_init()
1042 atomic_set(&nds32_pmu->active_events, 0); in nds32_init()
/arch/sparc/kernel/
Dperf_event.c1158 static atomic_t active_events = ATOMIC_INIT(0); variable
1173 if (atomic_inc_not_zero(&active_events)) in perf_event_grab_pmc()
1177 if (atomic_read(&active_events) == 0) { in perf_event_grab_pmc()
1182 atomic_inc(&active_events); in perf_event_grab_pmc()
1189 if (atomic_dec_and_mutex_lock(&active_events, &pmc_grab_mutex)) { in perf_event_release_pmc()
1624 if (!atomic_read(&active_events)) in perf_event_nmi_handler()
/arch/mips/kernel/
Dperf_event_mipsxx.c545 static atomic_t active_events = ATOMIC_INIT(0); variable
596 if (atomic_dec_and_mutex_lock(&active_events, in hw_perf_event_destroy()
630 if (!atomic_inc_not_zero(&active_events)) { in mipspmu_event_init()
632 if (atomic_read(&active_events) == 0) in mipspmu_event_init()
636 atomic_inc(&active_events); in mipspmu_event_init()
/arch/x86/events/
Dcore.c141 static atomic_t active_events; variable
283 atomic_dec(&active_events); in hw_perf_event_destroy()
391 atomic_inc(&active_events); in x86_add_exclusive()
401 atomic_dec(&active_events); in x86_del_exclusive()
600 atomic_inc(&active_events); in __x86_pmu_event_init()
1562 if (!atomic_read(&active_events)) in perf_event_nmi_handler()
/arch/nds32/include/asm/
Dpmu.h83 atomic_t active_events; member