drm/panfrost: Simplify devfreq utilisation tracking
[linux-2.6-microblaze.git] / drivers / gpu / drm / panfrost / panfrost_device.h
index 9c39b97..0671381 100644 (file)
@@ -51,13 +51,6 @@ struct panfrost_features {
        unsigned long hw_issues[64 / BITS_PER_LONG];
 };
 
-struct panfrost_devfreq_slot {
-       ktime_t busy_time;
-       ktime_t idle_time;
-       ktime_t time_last_update;
-       bool busy;
-};
-
 struct panfrost_device {
        struct device *dev;
        struct drm_device *ddev;
@@ -93,9 +86,10 @@ struct panfrost_device {
        struct {
                struct devfreq *devfreq;
                struct thermal_cooling_device *cooling;
-               unsigned long cur_freq;
-               unsigned long cur_volt;
-               struct panfrost_devfreq_slot slot[NUM_JOB_SLOTS];
+               ktime_t busy_time;
+               ktime_t idle_time;
+               ktime_t time_last_update;
+               atomic_t busy_count;
        } devfreq;
 };