|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [RFC PATCH v2 08/15] xen/arm64: port Linux's arm64 atomic_ll_sc.h to Xen
Hi Ash, On 11/11/2020 21:51, Ash Wilding wrote: From: Ash Wilding <ash.j.wilding@xxxxxxxxx> Most of the "work" here is simply deleting the atomic64_t helper definitions as we don't have an atomic64_t type in Xen. There is some request to support atomic64_t in Xen. I would suggest to keep as this would be simpler to support it in the future. Although, we can probably just revert part of the patch when this is necessary. Signed-off-by: Ash Wilding <ash.j.wilding@xxxxxxxxx> --- xen/include/asm-arm/arm64/atomic_ll_sc.h | 134 +---------------------- I think we want to update README.LinuxPrimitives also with the new baseline for the helpers. 1 file changed, 6 insertions(+), 128 deletions(-) diff --git a/xen/include/asm-arm/arm64/atomic_ll_sc.h b/xen/include/asm-arm/arm64/atomic_ll_sc.h index e1009c0f94..20b0cb174e 100644 --- a/xen/include/asm-arm/arm64/atomic_ll_sc.h +++ b/xen/include/asm-arm/arm64/atomic_ll_sc.h @@ -1,16 +1,16 @@ -/* SPDX-License-Identifier: GPL-2.0-only */ /* - * Based on arch/arm/include/asm/atomic.h + * Taken from Linux 5.10-rc2 (last commit 3cea11cd5) * * Copyright (C) 1996 Russell King. * Copyright (C) 2002 Deep Blue Solutions Ltd. * Copyright (C) 2012 ARM Ltd. + * SPDX-License-Identifier: GPL-2.0-only May I ask why the SDPX license was moved around? */-#ifndef __ASM_ATOMIC_LL_SC_H-#define __ASM_ATOMIC_LL_SC_H +#ifndef __ASM_ARM_ARM64_ATOMIC_LL_SC_H +#define __ASM_ARM_ARM64_ATOMIC_LL_SC_H I would suggest to keep the Linux guards. -#include <linux/stringify.h>+#include <xen/stringify.h>#ifdef CONFIG_ARM64_LSE_ATOMICS#define __LL_SC_FALLBACK(asm_ops) \ @@ -134,128 +134,6 @@ ATOMIC_OPS(andnot, bic, ) #undef ATOMIC_OP_RETURN #undef ATOMIC_OP-#define ATOMIC64_OP(op, asm_op, constraint) \ Cheers, -- Julien Grall
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |