Revision 11261,
797 bytes
checked in by ara_t, 6 years ago
(diff) |
update: self-build-broadcom-wl
|
-
Since Linux 4.3, rdtscl() is no longer available and native_read_tsc()
is renamed to rdtsc(). Move the macro contents in-line and call the
new function. References:
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit?id=fe47ae6e1a5005b2e82f7eab57b5c3820453293a
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit?id=4ea1636b04dbd66536fa387bae2eea463efc705b
diff -ru a/src/shared/linux_osl.c b/src/shared/linux_osl.c
old
|
new
|
|
932 | 932 | uint cycles; |
933 | 933 | |
934 | 934 | #if defined(__i386__) |
| 935 | #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 3, 0) |
| 936 | cycles = (u32)rdtsc(); |
| 937 | #else |
935 | 938 | rdtscl(cycles); |
| 939 | #endif |
936 | 940 | #else |
937 | 941 | cycles = 0; |
938 | 942 | #endif |
Note: See
TracBrowser
for help on using the repository browser.