apic.c (26573a97746c7a99f394f9d398ce91a8853b3b89) apic.c (e57d04e5fa00f7649d4c00796f8d12054799be4a)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Local APIC handling, local APIC timers
4 *
5 * (c) 1999, 2000, 2009 Ingo Molnar <mingo@redhat.com>
6 *
7 * Fixes
8 * Maciej W. Rozycki : Bits for genuine 82489DX APICs;

--- 1577 unchanged lines hidden (view full) ---

1586 /*
1587 * Intel recommends to set DFR, LDR and TPR before enabling
1588 * an APIC. See e.g. "AP-388 82489DX User's Manual" (Intel
1589 * document number 292116). So here it goes...
1590 */
1591 apic->init_apic_ldr();
1592
1593#ifdef CONFIG_X86_32
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Local APIC handling, local APIC timers
4 *
5 * (c) 1999, 2000, 2009 Ingo Molnar <mingo@redhat.com>
6 *
7 * Fixes
8 * Maciej W. Rozycki : Bits for genuine 82489DX APICs;

--- 1577 unchanged lines hidden (view full) ---

1586 /*
1587 * Intel recommends to set DFR, LDR and TPR before enabling
1588 * an APIC. See e.g. "AP-388 82489DX User's Manual" (Intel
1589 * document number 292116). So here it goes...
1590 */
1591 apic->init_apic_ldr();
1592
1593#ifdef CONFIG_X86_32
1594 if (apic->dest_logical) {
1594 if (apic->irq_dest_mode == 1) {
1595 int logical_apicid, ldr_apicid;
1596
1597 /*
1598 * APIC LDR is initialized. If logical_apicid mapping was
1599 * initialized during get_smp_config(), make sure it matches
1600 * the actual value.
1601 */
1602 logical_apicid = early_per_cpu(x86_cpu_to_logical_apicid, cpu);

--- 1285 unchanged lines hidden ---
1595 int logical_apicid, ldr_apicid;
1596
1597 /*
1598 * APIC LDR is initialized. If logical_apicid mapping was
1599 * initialized during get_smp_config(), make sure it matches
1600 * the actual value.
1601 */
1602 logical_apicid = early_per_cpu(x86_cpu_to_logical_apicid, cpu);

--- 1285 unchanged lines hidden ---