Merge tag 'irq-core-2020-12-23' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6-microblaze.git] / drivers / gpu / drm / i915 / i915_pmu.h
index 9e49c64..8405d6d 100644 (file)
@@ -43,12 +43,16 @@ struct i915_pmu {
         */
        struct {
                struct hlist_node node;
-               enum cpuhp_state slot;
+               unsigned int cpu;
        } cpuhp;
        /**
         * @base: PMU base.
         */
        struct pmu base;
+       /**
+        * @closed: i915 is unregistering.
+        */
+       bool closed;
        /**
         * @name: Name as registered with perf core.
         */
@@ -130,11 +134,15 @@ struct i915_pmu {
 };
 
 #ifdef CONFIG_PERF_EVENTS
+void i915_pmu_init(void);
+void i915_pmu_exit(void);
 void i915_pmu_register(struct drm_i915_private *i915);
 void i915_pmu_unregister(struct drm_i915_private *i915);
 void i915_pmu_gt_parked(struct drm_i915_private *i915);
 void i915_pmu_gt_unparked(struct drm_i915_private *i915);
 #else
+static inline void i915_pmu_init(void) {}
+static inline void i915_pmu_exit(void) {}
 static inline void i915_pmu_register(struct drm_i915_private *i915) {}
 static inline void i915_pmu_unregister(struct drm_i915_private *i915) {}
 static inline void i915_pmu_gt_parked(struct drm_i915_private *i915) {}