X-Git-Url: http://git.ozo.com/?p=openwrt-10.03%2F.git;a=blobdiff_plain;f=package%2Fmac80211%2Fpatches%2F022-atomic64_backport.patch;fp=package%2Fmac80211%2Fpatches%2F022-atomic64_backport.patch;h=7589d73dcb8a145d6d220c960b32981b87adf330;hp=27e2edb711978c6d39124438a4a16b9b08135b0c;hb=87d168aa57238df3eacf2a1ec5f760e8c283ab91;hpb=23ab70fab2023d9f8bfc11a1d6ad54ed59a8a2af diff --git a/package/mac80211/patches/022-atomic64_backport.patch b/package/mac80211/patches/022-atomic64_backport.patch index 27e2edb71..7589d73dc 100644 --- a/package/mac80211/patches/022-atomic64_backport.patch +++ b/package/mac80211/patches/022-atomic64_backport.patch @@ -34,10 +34,12 @@ #endif /* LINUX_26_31_COMPAT_H */ --- /dev/null +++ b/compat/compat_atomic.c -@@ -0,0 +1,29 @@ +@@ -0,0 +1,33 @@ +#include +#include + ++#if !defined(CONFIG_X86) && !((LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) && defined(CONFIG_ARM) && !defined(CONFIG_GENERIC_ATOMIC64)) ++ +static DEFINE_SPINLOCK(lock); + +long long atomic64_read(const atomic64_t *v) @@ -64,6 +66,8 @@ +} +EXPORT_SYMBOL(atomic64_add_return); + ++#endif ++ --- a/include/linux/compat-3.1.h +++ b/include/linux/compat-3.1.h @@ -24,6 +24,18 @@ @@ -78,7 +82,7 @@ + */ +#include + -+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,31)) && !defined(ATOMIC64_INIT) ++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,31)) && !defined(ATOMIC64_INIT) && !defined(CONFIG_X86) && !((LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) && defined(CONFIG_ARM) && !defined(CONFIG_GENERIC_ATOMIC64)) +#include +#endif +