kmod-kvdo/0001-add-loongarch64-support-for-kmod-kvdo.patch

26 lines
723 B
Diff
Raw Permalink Normal View History

From 7f57cf2b2dcb9dc5b0b08b47e33ce989269dfe78 Mon Sep 17 00:00:00 2001
From: wangshuo <wangshuo@kylinos.cn>
Date: Thu, 12 Dec 2024 20:34:23 +0800
Subject: [PATCH] add loongarch64 support for kmod-kvdo
---
vdo/cpu.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vdo/cpu.h b/vdo/cpu.h
index ee449b7..b3fbfd9 100644
--- a/vdo/cpu.h
+++ b/vdo/cpu.h
@@ -20,7 +20,7 @@
#define CACHE_LINE_BYTES 128
#elif defined(__s390x__)
#define CACHE_LINE_BYTES 256
-#elif defined(__x86_64__) || defined(__aarch64__) || defined(__riscv)
+#elif defined(__x86_64__) || defined(__aarch64__) || defined(__riscv) || defined(__loongarch64)
#define CACHE_LINE_BYTES 64
#else
#error "unknown cache line size"
--
2.27.0