Home
last modified time | relevance | path

Searched refs:pfdevfreq (Results 1 – 4 of 4) sorted by relevance

/drivers/gpu/drm/panfrost/
Dpanfrost_devfreq.c13 static void panfrost_devfreq_update_utilization(struct panfrost_devfreq *pfdevfreq) in panfrost_devfreq_update_utilization() argument
18 last = pfdevfreq->time_last_update; in panfrost_devfreq_update_utilization()
20 if (pfdevfreq->busy_count > 0) in panfrost_devfreq_update_utilization()
21 pfdevfreq->busy_time += ktime_sub(now, last); in panfrost_devfreq_update_utilization()
23 pfdevfreq->idle_time += ktime_sub(now, last); in panfrost_devfreq_update_utilization()
25 pfdevfreq->time_last_update = now; in panfrost_devfreq_update_utilization()
41 static void panfrost_devfreq_reset(struct panfrost_devfreq *pfdevfreq) in panfrost_devfreq_reset() argument
43 pfdevfreq->busy_time = 0; in panfrost_devfreq_reset()
44 pfdevfreq->idle_time = 0; in panfrost_devfreq_reset()
45 pfdevfreq->time_last_update = ktime_get(); in panfrost_devfreq_reset()
[all …]
Dpanfrost_job.c194 panfrost_devfreq_record_busy(&pfdev->pfdevfreq); in panfrost_job_hw_submit()
460 panfrost_devfreq_record_idle(&pfdev->pfdevfreq); in panfrost_job_handle_err()
481 panfrost_devfreq_record_idle(&pfdev->pfdevfreq); in panfrost_job_handle_done()
688 panfrost_devfreq_record_idle(&pfdev->pfdevfreq); in panfrost_reset()
Dpanfrost_device.h122 struct panfrost_devfreq pfdevfreq; member
Dpanfrost_device.c223 if (!pfdev->pfdevfreq.opp_of_table_added) { in panfrost_device_init()