mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-04 23:24:56 +00:00
hv: refine atomic_load/store_xxx name
rename atomic_load/store_xxx32 to atomic_load/store rename atomic_load/store_xxx64 to atomic_load64/store64 Signed-off-by: Li, Fei1 <fei1.li@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -156,7 +156,7 @@ struct tgt_uart {
|
||||
uint64_t base_address;
|
||||
uint32_t clock_frequency;
|
||||
uint32_t buffer_size;
|
||||
unsigned int open_count;
|
||||
int open_count;
|
||||
|
||||
/* Target specific function pointers. */
|
||||
int (*init)(struct tgt_uart *tgt_uart);
|
||||
|
||||
@@ -161,10 +161,10 @@ static int uart16550_init(struct tgt_uart *tgt_uart)
|
||||
status = -ENODEV;
|
||||
} else {
|
||||
if (strcmp(tgt_uart->uart_id, "STDIO") == 0) {
|
||||
atomic_store_rel_int(&tgt_uart->open_count, 0);
|
||||
atomic_store(&tgt_uart->open_count, 0);
|
||||
} else {
|
||||
/* set open count to 1 to prevent open */
|
||||
atomic_store_rel_int(&tgt_uart->open_count, 1);
|
||||
atomic_store(&tgt_uart->open_count, 1);
|
||||
status = -EINVAL;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user