Home
last modified time | relevance | path

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

/linux-5.19.10/Documentation/translations/zh_CN/riscv/
Dpmu.rst104 if (!atomic_inc_not_zero(&pmc_refcount)) {
106 if (atomic_read(&pmc_refcount) == 0) {
113 atomic_inc(&pmc_refcount);
/linux-5.19.10/arch/x86/events/
Dcore.c186 static atomic_t pmc_refcount; variable
398 if (!atomic_inc_not_zero(&pmc_refcount)) { in x86_reserve_hardware()
400 if (atomic_read(&pmc_refcount) == 0) { in x86_reserve_hardware()
409 atomic_inc(&pmc_refcount); in x86_reserve_hardware()
418 if (atomic_dec_and_mutex_lock(&pmc_refcount, &pmc_reserve_mutex)) { in x86_release_hardware()