diff options
author | Greg Kroah-Hartman | 2016-09-05 08:09:04 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2016-09-05 08:09:04 +0200 |
commit | 2f5bb02ff22414ce156cacb163dd594b017af357 (patch) | |
tree | 5213feb307367fdffb993ed03ed3094ec92021ea /drivers/gpu/drm/vc4/vc4_drv.h | |
parent | device core: Remove deprecated create_singlethread_workqueue (diff) | |
parent | Linux 4.8-rc5 (diff) | |
download | kernel-qcow2-linux-2f5bb02ff22414ce156cacb163dd594b017af357.tar.gz kernel-qcow2-linux-2f5bb02ff22414ce156cacb163dd594b017af357.tar.xz kernel-qcow2-linux-2f5bb02ff22414ce156cacb163dd594b017af357.zip |
Merge 4.8-rc5 into driver-core-next
We want the sysfs and kernfs in here as well.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/gpu/drm/vc4/vc4_drv.h')
-rw-r--r-- | drivers/gpu/drm/vc4/vc4_drv.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/gpu/drm/vc4/vc4_drv.h b/drivers/gpu/drm/vc4/vc4_drv.h index 489e3de0c050..428e24919ef1 100644 --- a/drivers/gpu/drm/vc4/vc4_drv.h +++ b/drivers/gpu/drm/vc4/vc4_drv.h @@ -321,6 +321,15 @@ vc4_first_render_job(struct vc4_dev *vc4) struct vc4_exec_info, head); } +static inline struct vc4_exec_info * +vc4_last_render_job(struct vc4_dev *vc4) +{ + if (list_empty(&vc4->render_job_list)) + return NULL; + return list_last_entry(&vc4->render_job_list, + struct vc4_exec_info, head); +} + /** * struct vc4_texture_sample_info - saves the offsets into the UBO for texture * setup parameters. |