| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright 2004 James Cleverdon, IBM. |
|---|
| 3 | | - * Subject to the GNU Public License, v.2 |
|---|
| 4 | 4 | * |
|---|
| 5 | 5 | * Generic APIC sub-arch probe layer. |
|---|
| 6 | 6 | * |
|---|
| .. | .. |
|---|
| 8 | 8 | * Martin Bligh, Andi Kleen, James Bottomley, John Stultz, and |
|---|
| 9 | 9 | * James Cleverdon. |
|---|
| 10 | 10 | */ |
|---|
| 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> |
|---|
| 21 | 12 | #include <asm/apic.h> |
|---|
| 22 | | -#include <asm/ipi.h> |
|---|
| 23 | | -#include <asm/setup.h> |
|---|
| 13 | + |
|---|
| 14 | +#include "local.h" |
|---|
| 24 | 15 | |
|---|
| 25 | 16 | /* |
|---|
| 26 | 17 | * Check the APIC IDs in bios_cpu_apicid and choose the APIC mode. |
|---|
| .. | .. |
|---|
| 41 | 32 | break; |
|---|
| 42 | 33 | } |
|---|
| 43 | 34 | } |
|---|
| 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); |
|---|
| 54 | 35 | } |
|---|
| 55 | 36 | |
|---|
| 56 | 37 | int __init default_acpi_madt_oem_check(char *oem_id, char *oem_table_id) |
|---|