forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/arch/x86/kernel/apic/probe_64.c
....@@ -1,6 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright 2004 James Cleverdon, IBM.
3
- * Subject to the GNU Public License, v.2
44 *
55 * Generic APIC sub-arch probe layer.
66 *
....@@ -8,19 +8,10 @@
88 * Martin Bligh, Andi Kleen, James Bottomley, John Stultz, and
99 * James Cleverdon.
1010 */
11
-#include <linux/threads.h>
12
-#include <linux/cpumask.h>
13
-#include <linux/string.h>
14
-#include <linux/init.h>
15
-#include <linux/kernel.h>
16
-#include <linux/ctype.h>
17
-#include <linux/hardirq.h>
18
-#include <linux/dmar.h>
19
-
20
-#include <asm/smp.h>
11
+#include <linux/thread_info.h>
2112 #include <asm/apic.h>
22
-#include <asm/ipi.h>
23
-#include <asm/setup.h>
13
+
14
+#include "local.h"
2415
2516 /*
2617 * Check the APIC IDs in bios_cpu_apicid and choose the APIC mode.
....@@ -41,16 +32,6 @@
4132 break;
4233 }
4334 }
44
-
45
- if (x86_platform.apic_post_init)
46
- x86_platform.apic_post_init();
47
-}
48
-
49
-/* Same for both flat and physical. */
50
-
51
-void apic_send_IPI_self(int vector)
52
-{
53
- __default_send_IPI_shortcut(APIC_DEST_SELF, vector, APIC_DEST_PHYSICAL);
5435 }
5536
5637 int __init default_acpi_madt_oem_check(char *oem_id, char *oem_table_id)