hv: refine atomic_xadd

1. rename atomic_xadd_int to atomic_xadd, add atomic_xadd64.
2. add atomic_add/sbu64_return, atomic_inc/dec64_return.

Signed-off-by: Li, Fei1 <fei1.li@intel.com>
This commit is contained in:
Li, Fei1
2018-05-16 16:12:22 +08:00
committed by lijinxia
parent bd3f3b00f7
commit fadaf14a94
4 changed files with 23 additions and 25 deletions

View File

@@ -52,7 +52,7 @@ DEFINE_CPU_DATA(struct shared_buf *, earlylog_sbuf);
struct logmsg {
uint32_t flags;
unsigned int seq;
int seq;
spinlock_t lock;
};