16 lines
384 B
Diff
16 lines
384 B
Diff
diff -ru a/src/shared/linux_osl.c b/src/shared/linux_osl.c
|
|
--- a/src/shared/linux_osl.c 2015-09-18 15:47:30.000000000 -0700
|
|
+++ b/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
|