Skip to content
Snippets Groups Projects
Select Git revision
  • 994501588de2a041eec2fbe8ae9a6dbe9a824eb3
  • master default protected
  • r1.8
  • r1.6
  • r1.9
  • r1.5
  • r1.7
  • r1.3
  • r1.4
  • r1.2
  • v1.6.0
  • v1.5.0
12 results

network_with_loss.py

Blame
  • io_apic.c 77.15 KiB
    /*
     *	Intel IO-APIC support for multi-Pentium hosts.
     *
     *	Copyright (C) 1997, 1998, 1999, 2000, 2009 Ingo Molnar, Hajnalka Szabo
     *
     *	Many thanks to Stig Venaas for trying out countless experimental
     *	patches and reporting/debugging problems patiently!
     *
     *	(c) 1999, Multiple IO-APIC support, developed by
     *	Ken-ichi Yaku <yaku@css1.kbnes.nec.co.jp> and
     *      Hidemi Kishimoto <kisimoto@css1.kbnes.nec.co.jp>,
     *	further tested and cleaned up by Zach Brown <zab@redhat.com>
     *	and Ingo Molnar <mingo@redhat.com>
     *
     *	Fixes
     *	Maciej W. Rozycki	:	Bits for genuine 82489DX APICs;
     *					thanks to Eric Gilmore
     *					and Rolf G. Tews
     *					for testing these extensively
     *	Paul Diefenbaugh	:	Added full ACPI support
     *
     * Historical information which is worth to be preserved:
     *
     * - SiS APIC rmw bug:
     *
     *	We used to have a workaround for a bug in SiS chips which
     *	required to rewrite the index register for a read-modify-write
     *	operation as the chip lost the index information which was
     *	setup for the read already. We cache the data now, so that
     *	workaround has been removed.
     */
    
    #include <linux/mm.h>
    #include <linux/interrupt.h>
    #include <linux/init.h>
    #include <linux/delay.h>
    #include <linux/sched.h>
    #include <linux/pci.h>
    #include <linux/mc146818rtc.h>
    #include <linux/compiler.h>
    #include <linux/acpi.h>
    #include <linux/module.h>
    #include <linux/syscore_ops.h>
    #include <linux/freezer.h>
    #include <linux/kthread.h>
    #include <linux/jiffies.h>	/* time_after() */
    #include <linux/slab.h>
    #include <linux/bootmem.h>
    
    #include <asm/irqdomain.h>
    #include <asm/idle.h>
    #include <asm/io.h>
    #include <asm/smp.h>
    #include <asm/cpu.h>
    #include <asm/desc.h>
    #include <asm/proto.h>
    #include <asm/acpi.h>
    #include <asm/dma.h>
    #include <asm/timer.h>
    #include <asm/i8259.h>
    #include <asm/setup.h>
    #include <asm/irq_remapping.h>
    #include <asm/hw_irq.h>
    
    #include <asm/apic.h>
    
    #define	for_each_ioapic(idx)		\
    	for ((idx) = 0; (idx) < nr_ioapics; (idx)++)
    #define	for_each_ioapic_reverse(idx)	\
    	for ((idx) = nr_ioapics - 1; (idx) >= 0; (idx)--)