• Linus Torvalds's avatar
    Merge tag 'x86-percpu-2024-05-13' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · e76f69b9
    Linus Torvalds authored
    Pull x86 percpu updates from Ingo Molnar:
    
     - Expand the named address spaces optimizations down to
       GCC 9.1+.
    
     - Re-enable named address spaces with sanitizers for GCC 13.3+
    
     - Generate better this_percpu_xchg_op() code
    
     - Introduce raw_cpu_read_long() to reduce ifdeffery
    
     - Simplify the x86_this_cpu_test_bit() et al macros
    
     - Address Sparse warnings
    
     - Misc cleanups & fixes
    
    * tag 'x86-percpu-2024-05-13' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
      x86/percpu: Introduce raw_cpu_read_long() to reduce ifdeffery
      x86/percpu: Rewrite x86_this_cpu_test_bit() and friends as macros
      x86/percpu: Fix x86_this_cpu_variable_test_bit() asm template
      x86/percpu: Re-enable named address spaces with sanitizers for GCC 13.3+
      x86/percpu: Use __force to cast from __percpu address space
      x86/percpu: Do not use this_cpu_read_stable_8() for 32-bit targets
      x86/percpu: Unify arch_raw_cpu_ptr() defines
      x86/percpu: Enable named address spaces for GCC 9.1+
      x86/percpu: Re-enable named address spaces with KASAN for GCC 13.3+
      x86/percpu: Move raw_percpu_xchg_op() to a better place
      x86/percpu: Convert this_percpu_xchg_op() from asm() to C code, to generate better code
    e76f69b9
cpufeature.h 8.02 KB