void-packages/srcpkgs/broadcom-wl-dkms/patches/003-linux-4.3.patch

15 lines
273 B
Diff

--- a/src/shared/linux_osl.c
+++ b/src/shared/linux_osl.c
@@ -932,7 +932,11 @@ osl_getcycles(void)
uint cycles;
#if defined(__i386__)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 3, 0)
+ cycles = rdtsc();
+#else
rdtscl(cycles);
+#endif
#else
cycles = 0;
#endif