projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bdb821c
)
drm/i915/execlists: Use list_safe_reset_next() instead of opencoding
author
Chris Wilson
<chris@chris-wilson.co.uk>
Mon, 5 Dec 2016 14:29:41 +0000
(14:29 +0000)
committer
Chris Wilson
<chris@chris-wilson.co.uk>
Mon, 5 Dec 2016 20:49:17 +0000
(20:49 +0000)
list.h provides a macro for updating the next element in a safe
list-iter, so let's use it so that it is hopefully clearer to the reader
about the unusual behaviour, and also easier to grep.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Link:
http://patchwork.freedesktop.org/patch/msgid/20161205142941.21965-6-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_lrc.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/intel_lrc.c
b/drivers/gpu/drm/i915/intel_lrc.c
index 67aec8f33c1db5b6a300a7589788542f289b84cb..8b412880e88c1b18f67109e40062e64fc157aa20 100644
(file)
--- a/
drivers/gpu/drm/i915/intel_lrc.c
+++ b/
drivers/gpu/drm/i915/intel_lrc.c
@@
-733,7
+733,7
@@
static void execlists_schedule(struct drm_i915_gem_request *request, int prio)
if (prio > READ_ONCE(p->signaler->priority))
list_move_tail(&p->dfs_link, &dfs);
-
p = list_next_entry(de
p, dfs_link);
+
list_safe_reset_next(dep,
p, dfs_link);
if (!RB_EMPTY_NODE(&pt->node))
continue;