OSDN Git Service

net: wireless: wl: update broadcom-sta hybrid driver
[android-x86/kernel.git] / drivers / net / wireless / wl / linux-recent.patch
1 --- a/src/shared/linux_osl.c
2 +++ b/src/shared/linux_osl.c
3 @@ -932,7 +932,11 @@
4         uint cycles;
5  
6  #if defined(__i386__)
7 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 3, 0)
8 +       cycles = (u32)rdtsc();
9 +#else
10         rdtscl(cycles);
11 +#endif
12  #else
13         cycles = 0;
14  #endif