From 482a122411450eed1e6b88d65caf837d0905e9d7 Mon Sep 17 00:00:00 2001 From: Renato Aguiar Date: Mon, 1 Feb 2016 18:01:58 -0800 Subject: [PATCH] broadcom-wl-dkms: Patch for x86 on linux >= 4.3 --- srcpkgs/broadcom-wl-dkms/patches/linux-4.3.patch | 15 +++++++++++++++ srcpkgs/broadcom-wl-dkms/template | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/broadcom-wl-dkms/patches/linux-4.3.patch diff --git a/srcpkgs/broadcom-wl-dkms/patches/linux-4.3.patch b/srcpkgs/broadcom-wl-dkms/patches/linux-4.3.patch new file mode 100644 index 00000000000..7373023db37 --- /dev/null +++ b/srcpkgs/broadcom-wl-dkms/patches/linux-4.3.patch @@ -0,0 +1,15 @@ +diff -ru a/src/shared/linux_osl.c b/src/shared/linux_osl.c +--- src/shared/linux_osl.c 2015-09-18 15:47:30.000000000 -0700 ++++ src/shared/linux_osl.c 2015-11-14 15:38:10.484563014 -0800 +@@ -932,7 +932,11 @@ + uint cycles; + + #if defined(__i386__) ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 3, 0) ++ cycles = rdtsc(); ++#else + rdtscl(cycles); ++#endif + #else + cycles = 0; + #endif diff --git a/srcpkgs/broadcom-wl-dkms/template b/srcpkgs/broadcom-wl-dkms/template index 60102b63c0e..c614df14261 100644 --- a/srcpkgs/broadcom-wl-dkms/template +++ b/srcpkgs/broadcom-wl-dkms/template @@ -2,7 +2,7 @@ pkgname=broadcom-wl-dkms version=6.30.223.271 -revision=1 +revision=2 maintainer="Juan RP " license="Proprietary Broadcom license" homepage="http://broadcom.com"