Searched refs:rapl_pmu (Results 1 – 2 of 2) sorted by relevance
130 struct rapl_pmu { struct144 struct rapl_pmu *rapl_pmu[] __counted_by(nr_rapl_pmu); argument247 static void rapl_start_hrtimer(struct rapl_pmu *pmu) in rapl_start_hrtimer()255 struct rapl_pmu *rapl_pmu = container_of(hrtimer, struct rapl_pmu, hrtimer); in rapl_hrtimer_handle() local259 if (!rapl_pmu->n_active) in rapl_hrtimer_handle()262 raw_spin_lock_irqsave(&rapl_pmu->lock, flags); in rapl_hrtimer_handle()264 list_for_each_entry(event, &rapl_pmu->active_list, active_entry) in rapl_hrtimer_handle()267 raw_spin_unlock_irqrestore(&rapl_pmu->lock, flags); in rapl_hrtimer_handle()269 hrtimer_forward_now(hrtimer, rapl_pmu->timer_interval); in rapl_hrtimer_handle()274 static void rapl_hrtimer_init(struct rapl_pmu *rapl_pmu) in rapl_hrtimer_init() argument[all …]
1131 struct rapl_pmu { struct1138 static struct rapl_pmu rapl_pmu; argument1522 return rapl_pmu.domain_map & BIT(domain) ? attr->mode : 0; \1550 if (rapl_pmu.registered && !(rp->domain_map & (~rapl_pmu.domain_map))) in rapl_pmu_update()1554 if (rapl_pmu.registered) in rapl_pmu_update()1555 perf_pmu_unregister(&rapl_pmu.pmu); in rapl_pmu_update()1557 rapl_pmu.registered = false; in rapl_pmu_update()1558 rapl_pmu.domain_map |= rp->domain_map; in rapl_pmu_update()1560 memset(&rapl_pmu.pmu, 0, sizeof(struct pmu)); in rapl_pmu_update()1561 rapl_pmu.pmu.attr_groups = pmu_attr_groups; in rapl_pmu_update()[all …]