From: Thom Hughes <thom.hughes@bytedance.com>
Signed-off-by: Thom Hughes <thom.hughes@bytedance.com>
Signed-off-by: Fam Zheng <fam.zheng@bytedance.com>
---
arch/x86/kernel/apic/apic_flat_64.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/x86/kernel/apic/apic_flat_64.c b/arch/x86/kernel/apic/apic_flat_64.c
index e0308d8c4e6c..e753125a1de8 100644
--- a/arch/x86/kernel/apic/apic_flat_64.c
+++ b/arch/x86/kernel/apic/apic_flat_64.c
@@ -9,6 +9,7 @@
* James Cleverdon.
*/
#include <linux/export.h>
+#include <linux/parker.h>
#include <asm/apic.h>
@@ -21,7 +22,7 @@ static u32 physflat_get_apic_id(u32 x)
static int physflat_probe(void)
{
- return 1;
+ return is_parker_instance();
}
static int physflat_acpi_madt_oem_check(char *oem_id, char *oem_table_id)
--
2.39.5