提交 474b4c4f 编写于 作者: D David S. Miller

netlabel: Remove prefetches from list handlers.

Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 c0cba59e
...@@ -96,12 +96,12 @@ static inline struct netlbl_af4list *__af4list_valid_rcu(struct list_head *s, ...@@ -96,12 +96,12 @@ static inline struct netlbl_af4list *__af4list_valid_rcu(struct list_head *s,
#define netlbl_af4list_foreach(iter, head) \ #define netlbl_af4list_foreach(iter, head) \
for (iter = __af4list_valid((head)->next, head); \ for (iter = __af4list_valid((head)->next, head); \
prefetch(iter->list.next), &iter->list != (head); \ &iter->list != (head); \
iter = __af4list_valid(iter->list.next, head)) iter = __af4list_valid(iter->list.next, head))
#define netlbl_af4list_foreach_rcu(iter, head) \ #define netlbl_af4list_foreach_rcu(iter, head) \
for (iter = __af4list_valid_rcu((head)->next, head); \ for (iter = __af4list_valid_rcu((head)->next, head); \
prefetch(iter->list.next), &iter->list != (head); \ &iter->list != (head); \
iter = __af4list_valid_rcu(iter->list.next, head)) iter = __af4list_valid_rcu(iter->list.next, head))
#define netlbl_af4list_foreach_safe(iter, tmp, head) \ #define netlbl_af4list_foreach_safe(iter, tmp, head) \
...@@ -163,12 +163,12 @@ static inline struct netlbl_af6list *__af6list_valid_rcu(struct list_head *s, ...@@ -163,12 +163,12 @@ static inline struct netlbl_af6list *__af6list_valid_rcu(struct list_head *s,
#define netlbl_af6list_foreach(iter, head) \ #define netlbl_af6list_foreach(iter, head) \
for (iter = __af6list_valid((head)->next, head); \ for (iter = __af6list_valid((head)->next, head); \
prefetch(iter->list.next), &iter->list != (head); \ &iter->list != (head); \
iter = __af6list_valid(iter->list.next, head)) iter = __af6list_valid(iter->list.next, head))
#define netlbl_af6list_foreach_rcu(iter, head) \ #define netlbl_af6list_foreach_rcu(iter, head) \
for (iter = __af6list_valid_rcu((head)->next, head); \ for (iter = __af6list_valid_rcu((head)->next, head); \
prefetch(iter->list.next), &iter->list != (head); \ &iter->list != (head); \
iter = __af6list_valid_rcu(iter->list.next, head)) iter = __af6list_valid_rcu(iter->list.next, head))
#define netlbl_af6list_foreach_safe(iter, tmp, head) \ #define netlbl_af6list_foreach_safe(iter, tmp, head) \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册