Lines Matching refs:cpu_pmu
808 static int cpu_pm_pmu_register(struct arm_pmu *cpu_pmu) in cpu_pm_pmu_register() argument
810 cpu_pmu->cpu_pm_nb.notifier_call = cpu_pm_pmu_notify; in cpu_pm_pmu_register()
811 return cpu_pm_register_notifier(&cpu_pmu->cpu_pm_nb); in cpu_pm_pmu_register()
814 static void cpu_pm_pmu_unregister(struct arm_pmu *cpu_pmu) in cpu_pm_pmu_unregister() argument
816 cpu_pm_unregister_notifier(&cpu_pmu->cpu_pm_nb); in cpu_pm_pmu_unregister()
819 static inline int cpu_pm_pmu_register(struct arm_pmu *cpu_pmu) { return 0; } in cpu_pm_pmu_register() argument
820 static inline void cpu_pm_pmu_unregister(struct arm_pmu *cpu_pmu) { } in cpu_pm_pmu_unregister() argument
823 static int cpu_pmu_init(struct arm_pmu *cpu_pmu) in cpu_pmu_init() argument
828 &cpu_pmu->node); in cpu_pmu_init()
832 err = cpu_pm_pmu_register(cpu_pmu); in cpu_pmu_init()
840 &cpu_pmu->node); in cpu_pmu_init()
845 static void cpu_pmu_destroy(struct arm_pmu *cpu_pmu) in cpu_pmu_destroy() argument
847 cpu_pm_pmu_unregister(cpu_pmu); in cpu_pmu_destroy()
849 &cpu_pmu->node); in cpu_pmu_destroy()