[GIT PULL] x86/asm changes for v6.7

From: Ingo Molnar
Date: Sat Oct 28 2023 - 09:00:02 EST


Linus,

Please pull the latest x86/asm git tree from:

git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-asm-2023-10-28

# HEAD: 8ae292c66dcb160b3e1e16b66c3076d5a2c63873 x86/lib: Address kernel-doc warnings

x86 assembly code improvements for v6.7 are:

- Micro-optimize the x86 bitops code
- Define target-specific {raw,this}_cpu_try_cmpxchg{64,128}() to improve code generation
- Define and use raw_cpu_try_cmpxchg() preempt_count_set()
- Do not clobber %rsi in percpu_{try_,}cmpxchg{64,128}_op
- Remove the unused __sw_hweight64() implementation on x86-32
- Misc fixes and cleanups

Thanks,

Ingo

------------------>
Ingo Molnar (1):
x86/bitops: Remove unused __sw_hweight64() assembly implementation on x86-32

Nick Desaulniers (1):
x86/asm/bitops: Use __builtin_clz{l|ll} to evaluate constant expressions

Uros Bizjak (4):
x86/percpu: Define {raw,this}_cpu_try_cmpxchg{64,128}
x86/percpu: Define raw_cpu_try_cmpxchg and this_cpu_try_cmpxchg()
x86/percpu: Use raw_cpu_try_cmpxchg() in preempt_count_set()
x86/percpu: Do not clobber %rsi in percpu_{try_,}cmpxchg{64,128}_op

Xin Li (Intel) (2):
x86/entry: Remove unused argument %rsi passed to exc_nmi()
x86/entry: Fix typos in comments

Zhu Wang (1):
x86/lib: Address kernel-doc warnings


arch/x86/entry/entry_64.S | 10 ++--
arch/x86/include/asm/bitops.h | 9 ++++
arch/x86/include/asm/percpu.h | 110 +++++++++++++++++++++++++++++++++++++---
arch/x86/include/asm/preempt.h | 4 +-
arch/x86/lib/csum-wrappers_64.c | 5 --
arch/x86/lib/hweight.S | 20 +++-----
6 files changed, 125 insertions(+), 33 deletions(-)