Home
last modified time | relevance | path

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

/linux/arch/s390/kernel/
H A Dperf_pai.c68 static struct pai_root { /* Anchor to per CPU data */ struct
72 } pai_root[PAI_PMU_MAX]; variable
99 if (refcount_sub_and_test(tasks, &pai_root[idx].refcnt)) { in pai_root_free()
100 free_percpu(pai_root[idx].mapptr); in pai_root_free()
101 pai_root[idx].mapptr = NULL; in pai_root_free()
104 __func__, idx, refcount_read(&pai_root[idx].refcnt), in pai_root_free()
105 atomic_read(&pai_root[idx].tskctx)); in pai_root_free()
116 if (!refcount_inc_not_zero(&pai_root[idx].refcnt)) { in pai_root_alloc()
118 pai_root[idx].mapptr = alloc_percpu(struct pai_mapptr); in pai_root_alloc()
119 if (!pai_root[idx].mapptr) in pai_root_alloc()
[all …]