projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a727c1
)
v3d: Reuse list_for_each_entry_rev().
author
Eric Anholt
<eric@anholt.net>
Thu, 28 Feb 2019 19:01:57 +0000
(11:01 -0800)
committer
Eric Anholt
<eric@anholt.net>
Mon, 11 Mar 2019 20:14:32 +0000
(13:14 -0700)
src/broadcom/compiler/qpu_schedule.c
patch
|
blob
|
history
diff --git
a/src/broadcom/compiler/qpu_schedule.c
b/src/broadcom/compiler/qpu_schedule.c
index e80be9c0bf17cc5765c672781a159e81f94d62e0..8a7d9e84bf65a474a44ac02944521542a29ff52c 100644
(file)
--- a/
src/broadcom/compiler/qpu_schedule.c
+++ b/
src/broadcom/compiler/qpu_schedule.c
@@
-440,14
+440,14
@@
calculate_forward_deps(struct v3d_compile *c, struct list_head *schedule_list)
static void
calculate_reverse_deps(struct v3d_compile *c, struct list_head *schedule_list)
{
- struct list_head *node;
struct schedule_state state;
memset(&state, 0, sizeof(state));
state.devinfo = c->devinfo;
state.dir = R;
- for (node = schedule_list->prev; schedule_list != node; node = node->prev) {
+ list_for_each_entry_rev(struct schedule_node, node, schedule_list,
+ link) {
calculate_deps(&state, (struct schedule_node *)node);
}
}