mbox series

[0/2] xen/x86: cmpxchg cleanup

Message ID 20240222090530.62530-1-roger.pau@citrix.com (mailing list archive)
Headers show
Series xen/x86: cmpxchg cleanup | expand

Message

Roger Pau Monné Feb. 22, 2024, 9:05 a.m. UTC
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(-)