wok-current diff broadcom-wl-pae/stuff/002-rdtscl.patch @ rev 25694
Fix cifs-utils, up grub2-efi-x64 stuff for iso EFI
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Sat Mar 30 18:05:22 2024 +0000 (3 months ago) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/broadcom-wl-pae/stuff/002-rdtscl.patch Sat Mar 30 18:05:22 2024 +0000 1.3 @@ -0,0 +1,22 @@ 1.4 +Since Linux 4.3, rdtscl() is no longer available and native_read_tsc() 1.5 +is renamed to rdtsc(). Move the macro contents in-line and call the 1.6 +new function. References: 1.7 + 1.8 +https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit?id=fe47ae6e1a5005b2e82f7eab57b5c3820453293a 1.9 +https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit?id=4ea1636b04dbd66536fa387bae2eea463efc705b 1.10 + 1.11 +diff -ru a/src/shared/linux_osl.c b/src/shared/linux_osl.c 1.12 +--- a/src/shared/linux_osl.c 2015-09-19 01:47:15.000000000 +0300 1.13 ++++ b/src/shared/linux_osl.c 2015-11-21 15:20:30.585902518 +0200 1.14 +@@ -932,7 +932,11 @@ 1.15 + uint cycles; 1.16 + 1.17 + #if defined(__i386__) 1.18 ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 3, 0) 1.19 ++ cycles = (u32)rdtsc(); 1.20 ++#else 1.21 + rdtscl(cycles); 1.22 ++#endif 1.23 + #else 1.24 + cycles = 0; 1.25 + #endif