[v2 13/24] eal/loongarch: add ticketlock operations for LoongArch
Min Zhou
zhoumin at loongson.cn
Tue May 31 12:02:34 CEST 2022
This patch adds ticketlock operations for LoongArch architecture.
Let it uses generic ticketlock implementation.
Signed-off-by: Min Zhou <zhoumin at loongson.cn>
---
lib/eal/loongarch/include/rte_ticketlock.h | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
create mode 100644 lib/eal/loongarch/include/rte_ticketlock.h
diff --git a/lib/eal/loongarch/include/rte_ticketlock.h b/lib/eal/loongarch/include/rte_ticketlock.h
new file mode 100644
index 0000000000..3959bcae7b
--- /dev/null
+++ b/lib/eal/loongarch/include/rte_ticketlock.h
@@ -0,0 +1,18 @@
+/* SPDX-License-Identifier: BSD-3-Clause
+ * Copyright(c) 2022 Loongson Technology Corporation Limited
+ */
+
+#ifndef _RTE_TICKETLOCK_LOONGARCH_H_
+#define _RTE_TICKETLOCK_LOONGARCH_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include "generic/rte_ticketlock.h"
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _RTE_TICKETLOCK_LOONGARCH_H_ */
--
2.31.1
More information about the dev
mailing list