Lines Matching refs:cpu_pmu
849 static int cpu_pm_pmu_register(struct arm_pmu *cpu_pmu) in cpu_pm_pmu_register() argument
851 cpu_pmu->cpu_pm_nb.notifier_call = cpu_pm_pmu_notify; in cpu_pm_pmu_register()
852 return cpu_pm_register_notifier(&cpu_pmu->cpu_pm_nb); in cpu_pm_pmu_register()
855 static void cpu_pm_pmu_unregister(struct arm_pmu *cpu_pmu) in cpu_pm_pmu_unregister() argument
857 cpu_pm_unregister_notifier(&cpu_pmu->cpu_pm_nb); in cpu_pm_pmu_unregister()
860 static inline int cpu_pm_pmu_register(struct arm_pmu *cpu_pmu) { return 0; } in cpu_pm_pmu_register() argument
861 static inline void cpu_pm_pmu_unregister(struct arm_pmu *cpu_pmu) { } in cpu_pm_pmu_unregister() argument
864 static int cpu_pmu_init(struct arm_pmu *cpu_pmu) in cpu_pmu_init() argument
869 &cpu_pmu->node); in cpu_pmu_init()
873 err = cpu_pm_pmu_register(cpu_pmu); in cpu_pmu_init()
881 &cpu_pmu->node); in cpu_pmu_init()
886 static void cpu_pmu_destroy(struct arm_pmu *cpu_pmu) in cpu_pmu_destroy() argument
888 cpu_pm_pmu_unregister(cpu_pmu); in cpu_pmu_destroy()
890 &cpu_pmu->node); in cpu_pmu_destroy()