source: projects/specs/trunk/nonfree/self-build-broadcom-wl/14-rdtscl.patch @ 11261

Revision 11261, 797 bytes checked in by ara_t, 6 years ago (diff)

update: self-build-broadcom-wl

  • src/shared/linux_osl.c

    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  
    932932        uint cycles; 
    933933 
    934934#if defined(__i386__) 
     935#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 3, 0) 
     936        cycles = (u32)rdtsc(); 
     937#else 
    935938        rdtscl(cycles); 
     939#endif 
    936940#else 
    937941        cycles = 0; 
    938942#endif  
Note: See TracBrowser for help on using the repository browser.