16 lines
380 B
Diff
16 lines
380 B
Diff
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
|