[PATCH 0/2] xen/x86: cmpxchg cleanup

Roger Pau Monne posted 2 patches 2 months ago
Patches applied successfully (tree, apply log)
git fetch https://gitlab.com/xen-project/patchew/xen tags/patchew/20240222090530.62530-1-roger.pau@citrix.com
xen/arch/x86/hpet.c           | 6 +-----
xen/arch/x86/mm/mem_sharing.c | 8 +-------
2 files changed, 2 insertions(+), 12 deletions(-)
[PATCH 0/2] xen/x86: cmpxchg cleanup
Posted by Roger Pau Monne 2 months ago
Hello,

Following series replace a couple of cmpxchg loops with an atomic inc.
The usage of such loops probably dates back to 32bit support, which
didn't have an instruction to do an atomic 64bit addition.

Thanks, Roger.

Roger Pau Monne (2):
  x86/memsharing: use an atomic add instead of a cmpxchg loop
  x86/hpet: use an atomic add instead of a cmpxchg loop

 xen/arch/x86/hpet.c           | 6 +-----
 xen/arch/x86/mm/mem_sharing.c | 8 +-------
 2 files changed, 2 insertions(+), 12 deletions(-)

-- 
2.43.0