X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=include%2Furcu%2Farch.h;h=717d79c6a2c6020c27baf94bcc7b099995245b9f;hb=0e2125fb7b2c7a92d7030b41df5fb372a7706c32;hp=d3914da27d41e9caf5158b2351ccc78b4b4b8ee8;hpb=5ee141704eaf9f77795fd573873d4bea5f136c71;p=urcu.git diff --git a/include/urcu/arch.h b/include/urcu/arch.h index d3914da..717d79c 100644 --- a/include/urcu/arch.h +++ b/include/urcu/arch.h @@ -1,22 +1,6 @@ -/* - * urcu/arch.h - * - * Copyright (c) 2020 Michael Jeanson - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ +// SPDX-FileCopyrightText: 2020 Michael Jeanson +// +// SPDX-License-Identifier: LGPL-2.1-or-later #ifndef _URCU_ARCH_H #define _URCU_ARCH_H @@ -171,5 +155,11 @@ #error "Cannot build: unrecognized architecture, see ." #endif +#ifdef CONFIG_RCU_EMIT_LEGACY_MB +# define cmm_emit_legacy_smp_mb() cmm_smp_mb() +#else +# define cmm_emit_legacy_smp_mb() do { } while (0) +#endif + #endif /* _URCU_ARCH_H */