hc
2024-10-12 a5969cabbb4660eab42b6ef0412cbbd1200cf14d
kernel/arch/x86/include/asm/amd_nb.h
....@@ -12,7 +12,6 @@
1212 u8 dev_limit;
1313 };
1414
15
-extern const struct pci_device_id amd_nb_misc_ids[];
1615 extern const struct amd_nb_bus_dev_range amd_nb_bus_dev_ranges[];
1716
1817 extern bool early_is_amd_nb(u32 value);
....@@ -58,6 +57,7 @@
5857
5958 /* initialized to the number of CPUs on the node sharing this bank */
6059 refcount_t cpus;
60
+ unsigned int shared;
6161 };
6262
6363 struct amd_northbridge {
....@@ -103,6 +103,9 @@
103103
104104 static inline bool amd_gart_present(void)
105105 {
106
+ if (boot_cpu_data.x86_vendor != X86_VENDOR_AMD)
107
+ return false;
108
+
106109 /* GART present only on Fam15h, upto model 0fh */
107110 if (boot_cpu_data.x86 == 0xf || boot_cpu_data.x86 == 0x10 ||
108111 (boot_cpu_data.x86 == 0x15 && boot_cpu_data.x86_model < 0x10))