コード例 #1
0
ファイル: irq_remapping.c プロジェクト: Lyude/linux
static void irq_remapping_restore_boot_irq_mode(void)
{
	/*
	 * With interrupt-remapping, for now we will use virtual wire A
	 * mode, as virtual wire B is little complex (need to configure
	 * both IOAPIC RTE as well as interrupt-remapping table entry).
	 * As this gets called during crash dump, keep this simple for
	 * now.
	 */
	if (boot_cpu_has(X86_FEATURE_APIC) || apic_from_smp_config())
		disconnect_bsp_APIC(0);
}
コード例 #2
0
void lapic_shutdown(void)
{
    unsigned long flags;

    if (!cpu_has_apic && !apic_from_smp_config())
        return;

    local_irq_save(flags);

#ifdef CONFIG_X86_32
    if (!enabled_via_apicbase)
        clear_local_APIC();
    else
#endif
        disable_local_APIC();


    local_irq_restore(flags);
}