at 23.05-pre 18 lines 626 B view raw
1https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit?id=fe47ae6e1a5005b2e82f7eab57b5c3820453293a 2https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit?id=4ea1636b04dbd66536fa387bae2eea463efc705b 3 4diff -ru a/src/shared/linux_osl.c b/src/shared/linux_osl.c 5--- a/src/shared/linux_osl.c 2015-09-19 01:47:15.000000000 +0300 6+++ b/src/shared/linux_osl.c 2015-11-21 15:20:30.585902518 +0200 7@@ -932,7 +932,11 @@ 8 uint cycles; 9 10 #if defined(__i386__) 11+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 3, 0) 12+ cycles = (u32)rdtsc(); 13+#else 14 rdtscl(cycles); 15+#endif 16 #else 17 cycles = 0; 18 #endif