Merge pull request #3519 from renatoaguiar/broadcom-wl-dkms
broadcom-wl-dkms: Patch for x86 on linux >= 4.3
This commit is contained in:
commit
bede0ec748
2 changed files with 16 additions and 1 deletions
15
srcpkgs/broadcom-wl-dkms/patches/linux-4.3.patch
Normal file
15
srcpkgs/broadcom-wl-dkms/patches/linux-4.3.patch
Normal file
|
@ -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
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
pkgname=broadcom-wl-dkms
|
||||
version=6.30.223.271
|
||||
revision=1
|
||||
revision=2
|
||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||
license="Proprietary Broadcom license"
|
||||
homepage="http://broadcom.com"
|
||||
|
|
Loading…
Reference in a new issue