forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/arch/x86/kernel/apic/apic_numachip.c
....@@ -10,15 +10,15 @@
1010 * Send feedback to <support@numascale.com>
1111 *
1212 */
13
-
13
+#include <linux/types.h>
1414 #include <linux/init.h>
15
+#include <linux/pgtable.h>
1516
1617 #include <asm/numachip/numachip.h>
1718 #include <asm/numachip/numachip_csr.h>
18
-#include <asm/ipi.h>
19
-#include <asm/apic_flat_64.h>
20
-#include <asm/pgtable.h>
21
-#include <asm/pci_x86.h>
19
+
20
+
21
+#include "local.h"
2222
2323 u8 numachip_system __read_mostly;
2424 static const struct apic apic_numachip1;
....@@ -175,7 +175,7 @@
175175 this_cpu_write(cpu_llc_id, node);
176176
177177 /* Account for nodes per socket in multi-core-module processors */
178
- if (static_cpu_has(X86_FEATURE_NODEID_MSR)) {
178
+ if (boot_cpu_has(X86_FEATURE_NODEID_MSR)) {
179179 rdmsrl(MSR_FAM10H_NODE_ID, val);
180180 nodes = ((val >> 3) & 7) + 1;
181181 }