diff options
Diffstat (limited to 'package/mac80211/patches/018-list_for_each_continue_backport.patch')
-rw-r--r-- | package/mac80211/patches/018-list_for_each_continue_backport.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/package/mac80211/patches/018-list_for_each_continue_backport.patch b/package/mac80211/patches/018-list_for_each_continue_backport.patch new file mode 100644 index 0000000000..08f8eed02d --- /dev/null +++ b/package/mac80211/patches/018-list_for_each_continue_backport.patch @@ -0,0 +1,15 @@ +--- a/include/linux/compat-2.6.33.h ++++ b/include/linux/compat-2.6.33.h +@@ -98,6 +98,12 @@ int pccard_loop_tuple(struct pcmcia_sock + #define kfifo_out(a, b, c) __kfifo_get(*a, b, c) + #define kfifo_len(a) __kfifo_len(*a) + ++#define list_for_each_entry_continue_rcu(pos, head, member) \ ++ for (pos = list_entry_rcu(pos->member.next, typeof(*pos), member); \ ++ prefetch(pos->member.next), &pos->member != (head); \ ++ pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) ++ ++ + #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,33)) */ + + #endif /* LINUX_26_33_COMPAT_H */ |