hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/arch/x86/kernel/apic/x2apic_phys.c
....@@ -97,7 +97,10 @@
9797
9898 static int x2apic_phys_probe(void)
9999 {
100
- if (x2apic_mode && (x2apic_phys || x2apic_fadt_phys()))
100
+ if (!x2apic_mode)
101
+ return 0;
102
+
103
+ if (x2apic_phys || x2apic_fadt_phys())
101104 return 1;
102105
103106 return apic == &apic_x2apic_phys;