Home
last modified time | relevance | path

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

/Linux-v5.4/Documentation/riscv/
Dpmu.rst105 if (!atomic_inc_not_zero(&pmc_refcount)) {
107 if (atomic_read(&pmc_refcount) == 0) {
114 atomic_inc(&pmc_refcount);
/Linux-v5.4/arch/x86/events/
Dcore.c142 static atomic_t pmc_refcount; variable
340 if (!atomic_inc_not_zero(&pmc_refcount)) { in x86_reserve_hardware()
342 if (atomic_read(&pmc_refcount) == 0) { in x86_reserve_hardware()
349 atomic_inc(&pmc_refcount); in x86_reserve_hardware()
358 if (atomic_dec_and_mutex_lock(&pmc_refcount, &pmc_reserve_mutex)) { in x86_release_hardware()