mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2024-11-25 00:16:45 +00:00
16 lines
344 B
Diff
16 lines
344 B
Diff
--- a/x86-32/src/shared/linux_osl.c 2015-09-19 01:47:15.000000000 +0300
|
|
+++ b/x86-32/src/shared/linux_osl.c 2015-11-21 15:20:30.585902518 +0200
|
|
@@ -932,7 +932,11 @@
|
|
uint cycles;
|
|
|
|
#if defined(__i386__)
|
|
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 3, 0)
|
|
+ cycles = (u32)rdtsc();
|
|
+#else
|
|
rdtscl(cycles);
|
|
+#endif
|
|
#else
|
|
cycles = 0;
|
|
#endif
|
|
|