summaryrefslogtreecommitdiff
path: root/arch/loongarch/include/asm/topology.h
diff options
context:
space:
mode:
authorHuacai Chen <chenhuacai@loongson.cn>2022-05-31 18:04:11 +0800
committerHuacai Chen <chenhuacai@loongson.cn>2022-06-03 20:09:28 +0800
commitb738c106f7355e318ca47a3b981688efe1bc12fb (patch)
treed9aabd9d80b50bf2ec0f4d029a72b61bacda4d5e /arch/loongarch/include/asm/topology.h
parent5b0b14e550a006b4d093619e7517923872bcc218 (diff)
downloadlwn-b738c106f7355e318ca47a3b981688efe1bc12fb.tar.gz
lwn-b738c106f7355e318ca47a3b981688efe1bc12fb.zip
LoongArch: Add other common headers
Add some other common headers for basic LoongArch support. Reviewed-by: WANG Xuerui <git@xen0n.name> Reviewed-by: Jiaxun Yang <jiaxun.yang@flygoat.com> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'arch/loongarch/include/asm/topology.h')
-rw-r--r--arch/loongarch/include/asm/topology.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/loongarch/include/asm/topology.h b/arch/loongarch/include/asm/topology.h
new file mode 100644
index 000000000000..9ac71a25207a
--- /dev/null
+++ b/arch/loongarch/include/asm/topology.h
@@ -0,0 +1,15 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * Copyright (C) 2020-2022 Loongson Technology Corporation Limited
+ */
+#ifndef __ASM_TOPOLOGY_H
+#define __ASM_TOPOLOGY_H
+
+#include <linux/smp.h>
+
+#define cpu_logical_map(cpu) 0
+
+#include <asm-generic/topology.h>
+
+static inline void arch_fix_phys_package_id(int num, u32 slot) { }
+#endif /* __ASM_TOPOLOGY_H */