void-packages/srcpkgs/broadcom-wl-dkms/patches/003-linux-4.3.patch
Đoàn Trần Công Danh 51faf6bcba broadcom-wl-dkms: patch for 6.0
While we're at it, import change for 5.17

Close: #39950
2022-10-15 06:39:47 +07:00

14 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