mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 18:21:39 +01:00
linux-2.6.11-xen-sparse is now linux-2.6-xen-sparse Signed-off-by: Vincent Hanquez <vincent@xensource.com> --HG-- rename : linux-2.6.11-xen-sparse/arch/xen/Kconfig => linux-2.6-xen-sparse/arch/xen/Kconfig rename : linux-2.6.11-xen-sparse/arch/xen/Kconfig.drivers => linux-2.6-xen-sparse/arch/xen/Kconfig.drivers rename : linux-2.6.11-xen-sparse/arch/xen/Makefile => linux-2.6-xen-sparse/arch/xen/Makefile rename : linux-2.6.11-xen-sparse/arch/xen/boot/Makefile => linux-2.6-xen-sparse/arch/xen/boot/Makefile rename : linux-2.6.11-xen-sparse/arch/xen/configs/xen0_defconfig_x86_32 => linux-2.6-xen-sparse/arch/xen/configs/xen0_defconfig_x86_32 rename : linux-2.6.11-xen-sparse/arch/xen/configs/xen0_defconfig_x86_64 => linux-2.6-xen-sparse/arch/xen/configs/xen0_defconfig_x86_64 rename : linux-2.6.11-xen-sparse/arch/xen/configs/xenU_defconfig_x86_32 => linux-2.6-xen-sparse/arch/xen/configs/xenU_defconfig_x86_32 rename : linux-2.6.11-xen-sparse/arch/xen/configs/xenU_defconfig_x86_64 => linux-2.6-xen-sparse/arch/xen/configs/xenU_defconfig_x86_64 rename : linux-2.6.11-xen-sparse/arch/xen/configs/xen_defconfig_x86_32 => linux-2.6-xen-sparse/arch/xen/configs/xen_defconfig_x86_32 rename : linux-2.6.11-xen-sparse/arch/xen/configs/xen_defconfig_x86_64 => linux-2.6-xen-sparse/arch/xen/configs/xen_defconfig_x86_64 rename : linux-2.6.11-xen-sparse/arch/xen/i386/Kconfig => linux-2.6-xen-sparse/arch/xen/i386/Kconfig rename : linux-2.6.11-xen-sparse/arch/xen/i386/Makefile => linux-2.6-xen-sparse/arch/xen/i386/Makefile rename : linux-2.6.11-xen-sparse/arch/xen/i386/kernel/Makefile => linux-2.6-xen-sparse/arch/xen/i386/kernel/Makefile rename : linux-2.6.11-xen-sparse/arch/xen/i386/kernel/acpi/Makefile => linux-2.6-xen-sparse/arch/xen/i386/kernel/acpi/Makefile rename : linux-2.6.11-xen-sparse/arch/xen/i386/kernel/acpi/boot.c => linux-2.6-xen-sparse/arch/xen/i386/kernel/acpi/boot.c rename : linux-2.6.11-xen-sparse/arch/xen/i386/kernel/apic.c => linux-2.6-xen-sparse/arch/xen/i386/kernel/apic.c rename : linux-2.6.11-xen-sparse/arch/xen/i386/kernel/cpu/Makefile => linux-2.6-xen-sparse/arch/xen/i386/kernel/cpu/Makefile rename : linux-2.6.11-xen-sparse/arch/xen/i386/kernel/cpu/common.c => linux-2.6-xen-sparse/arch/xen/i386/kernel/cpu/common.c rename : linux-2.6.11-xen-sparse/arch/xen/i386/kernel/cpu/mtrr/Makefile => linux-2.6-xen-sparse/arch/xen/i386/kernel/cpu/mtrr/Makefile rename : linux-2.6.11-xen-sparse/arch/xen/i386/kernel/cpu/mtrr/main.c => linux-2.6-xen-sparse/arch/xen/i386/kernel/cpu/mtrr/main.c rename : linux-2.6.11-xen-sparse/arch/xen/i386/kernel/entry.S => linux-2.6-xen-sparse/arch/xen/i386/kernel/entry.S rename : linux-2.6.11-xen-sparse/arch/xen/i386/kernel/head.S => linux-2.6-xen-sparse/arch/xen/i386/kernel/head.S rename : linux-2.6.11-xen-sparse/arch/xen/i386/kernel/i386_ksyms.c => linux-2.6-xen-sparse/arch/xen/i386/kernel/i386_ksyms.c rename : linux-2.6.11-xen-sparse/arch/xen/i386/kernel/io_apic.c => linux-2.6-xen-sparse/arch/xen/i386/kernel/io_apic.c rename : linux-2.6.11-xen-sparse/arch/xen/i386/kernel/ioport.c => linux-2.6-xen-sparse/arch/xen/i386/kernel/ioport.c rename : linux-2.6.11-xen-sparse/arch/xen/i386/kernel/irq.c => linux-2.6-xen-sparse/arch/xen/i386/kernel/irq.c rename : linux-2.6.11-xen-sparse/arch/xen/i386/kernel/ldt.c => linux-2.6-xen-sparse/arch/xen/i386/kernel/ldt.c rename : linux-2.6.11-xen-sparse/arch/xen/i386/kernel/microcode.c => linux-2.6-xen-sparse/arch/xen/i386/kernel/microcode.c rename : linux-2.6.11-xen-sparse/arch/xen/i386/kernel/mpparse.c => linux-2.6-xen-sparse/arch/xen/i386/kernel/mpparse.c rename : linux-2.6.11-xen-sparse/arch/xen/i386/kernel/pci-dma.c => linux-2.6-xen-sparse/arch/xen/i386/kernel/pci-dma.c rename : linux-2.6.11-xen-sparse/arch/xen/i386/kernel/process.c => linux-2.6-xen-sparse/arch/xen/i386/kernel/process.c rename : linux-2.6.11-xen-sparse/arch/xen/i386/kernel/setup.c => linux-2.6-xen-sparse/arch/xen/i386/kernel/setup.c rename : linux-2.6.11-xen-sparse/arch/xen/i386/kernel/signal.c => linux-2.6-xen-sparse/arch/xen/i386/kernel/signal.c rename : linux-2.6.11-xen-sparse/arch/xen/i386/kernel/smp.c => linux-2.6-xen-sparse/arch/xen/i386/kernel/smp.c rename : linux-2.6.11-xen-sparse/arch/xen/i386/kernel/smpboot.c => linux-2.6-xen-sparse/arch/xen/i386/kernel/smpboot.c rename : linux-2.6.11-xen-sparse/arch/xen/i386/kernel/time.c => linux-2.6-xen-sparse/arch/xen/i386/kernel/time.c rename : linux-2.6.11-xen-sparse/arch/xen/i386/kernel/timers/Makefile => linux-2.6-xen-sparse/arch/xen/i386/kernel/timers/Makefile rename : linux-2.6.11-xen-sparse/arch/xen/i386/kernel/timers/timer_tsc.c => linux-2.6-xen-sparse/arch/xen/i386/kernel/timers/timer_tsc.c rename : linux-2.6.11-xen-sparse/arch/xen/i386/kernel/traps.c => linux-2.6-xen-sparse/arch/xen/i386/kernel/traps.c rename : linux-2.6.11-xen-sparse/arch/xen/i386/kernel/vsyscall.S => linux-2.6-xen-sparse/arch/xen/i386/kernel/vsyscall.S rename : linux-2.6.11-xen-sparse/arch/xen/i386/mach-default/Makefile => linux-2.6-xen-sparse/arch/xen/i386/mach-default/Makefile rename : linux-2.6.11-xen-sparse/arch/xen/i386/mm/Makefile => linux-2.6-xen-sparse/arch/xen/i386/mm/Makefile rename : linux-2.6.11-xen-sparse/arch/xen/i386/mm/fault.c => linux-2.6-xen-sparse/arch/xen/i386/mm/fault.c rename : linux-2.6.11-xen-sparse/arch/xen/i386/mm/highmem.c => linux-2.6-xen-sparse/arch/xen/i386/mm/highmem.c rename : linux-2.6.11-xen-sparse/arch/xen/i386/mm/hypervisor.c => linux-2.6-xen-sparse/arch/xen/i386/mm/hypervisor.c rename : linux-2.6.11-xen-sparse/arch/xen/i386/mm/init.c => linux-2.6-xen-sparse/arch/xen/i386/mm/init.c rename : linux-2.6.11-xen-sparse/arch/xen/i386/mm/ioremap.c => linux-2.6-xen-sparse/arch/xen/i386/mm/ioremap.c rename : linux-2.6.11-xen-sparse/arch/xen/i386/mm/pgtable.c => linux-2.6-xen-sparse/arch/xen/i386/mm/pgtable.c rename : linux-2.6.11-xen-sparse/arch/xen/i386/pci/Makefile => linux-2.6-xen-sparse/arch/xen/i386/pci/Makefile rename : linux-2.6.11-xen-sparse/arch/xen/i386/pci/irq.c => linux-2.6-xen-sparse/arch/xen/i386/pci/irq.c rename : linux-2.6.11-xen-sparse/arch/xen/kernel/Makefile => linux-2.6-xen-sparse/arch/xen/kernel/Makefile rename : linux-2.6.11-xen-sparse/arch/xen/kernel/ctrl_if.c => linux-2.6-xen-sparse/arch/xen/kernel/ctrl_if.c rename : linux-2.6.11-xen-sparse/arch/xen/kernel/devmem.c => linux-2.6-xen-sparse/arch/xen/kernel/devmem.c rename : linux-2.6.11-xen-sparse/arch/xen/kernel/evtchn.c => linux-2.6-xen-sparse/arch/xen/kernel/evtchn.c rename : linux-2.6.11-xen-sparse/arch/xen/kernel/fixup.c => linux-2.6-xen-sparse/arch/xen/kernel/fixup.c rename : linux-2.6.11-xen-sparse/arch/xen/kernel/gnttab.c => linux-2.6-xen-sparse/arch/xen/kernel/gnttab.c rename : linux-2.6.11-xen-sparse/arch/xen/kernel/reboot.c => linux-2.6-xen-sparse/arch/xen/kernel/reboot.c rename : linux-2.6.11-xen-sparse/arch/xen/kernel/skbuff.c => linux-2.6-xen-sparse/arch/xen/kernel/skbuff.c rename : linux-2.6.11-xen-sparse/arch/xen/kernel/smp.c => linux-2.6-xen-sparse/arch/xen/kernel/smp.c rename : linux-2.6.11-xen-sparse/arch/xen/kernel/xen_proc.c => linux-2.6-xen-sparse/arch/xen/kernel/xen_proc.c rename : linux-2.6.11-xen-sparse/arch/xen/x86_64/Kconfig => linux-2.6-xen-sparse/arch/xen/x86_64/Kconfig rename : linux-2.6.11-xen-sparse/arch/xen/x86_64/Makefile => linux-2.6-xen-sparse/arch/xen/x86_64/Makefile rename : linux-2.6.11-xen-sparse/arch/xen/x86_64/ia32/Makefile => linux-2.6-xen-sparse/arch/xen/x86_64/ia32/Makefile rename : linux-2.6.11-xen-sparse/arch/xen/x86_64/ia32/ia32entry.S => linux-2.6-xen-sparse/arch/xen/x86_64/ia32/ia32entry.S rename : linux-2.6.11-xen-sparse/arch/xen/x86_64/ia32/syscall32.c => linux-2.6-xen-sparse/arch/xen/x86_64/ia32/syscall32.c rename : linux-2.6.11-xen-sparse/arch/xen/x86_64/ia32/vsyscall-int80.S => linux-2.6-xen-sparse/arch/xen/x86_64/ia32/vsyscall-int80.S rename : linux-2.6.11-xen-sparse/arch/xen/x86_64/kernel/Makefile => linux-2.6-xen-sparse/arch/xen/x86_64/kernel/Makefile rename : linux-2.6.11-xen-sparse/arch/xen/x86_64/kernel/acpi/Makefile => linux-2.6-xen-sparse/arch/xen/x86_64/kernel/acpi/Makefile rename : linux-2.6.11-xen-sparse/arch/xen/x86_64/kernel/apic.c => linux-2.6-xen-sparse/arch/xen/x86_64/kernel/apic.c rename : linux-2.6.11-xen-sparse/arch/xen/x86_64/kernel/asm-offsets.c => linux-2.6-xen-sparse/arch/xen/x86_64/kernel/asm-offsets.c rename : linux-2.6.11-xen-sparse/arch/xen/x86_64/kernel/e820.c => linux-2.6-xen-sparse/arch/xen/x86_64/kernel/e820.c rename : linux-2.6.11-xen-sparse/arch/xen/x86_64/kernel/early_printk.c => linux-2.6-xen-sparse/arch/xen/x86_64/kernel/early_printk.c rename : linux-2.6.11-xen-sparse/arch/xen/x86_64/kernel/entry.S => linux-2.6-xen-sparse/arch/xen/x86_64/kernel/entry.S rename : linux-2.6.11-xen-sparse/arch/xen/x86_64/kernel/head.S => linux-2.6-xen-sparse/arch/xen/x86_64/kernel/head.S rename : linux-2.6.11-xen-sparse/arch/xen/x86_64/kernel/head64.c => linux-2.6-xen-sparse/arch/xen/x86_64/kernel/head64.c rename : linux-2.6.11-xen-sparse/arch/xen/x86_64/kernel/init_task.c => linux-2.6-xen-sparse/arch/xen/x86_64/kernel/init_task.c rename : linux-2.6.11-xen-sparse/arch/xen/x86_64/kernel/io_apic.c => linux-2.6-xen-sparse/arch/xen/x86_64/kernel/io_apic.c rename : linux-2.6.11-xen-sparse/arch/xen/x86_64/kernel/ioport.c => linux-2.6-xen-sparse/arch/xen/x86_64/kernel/ioport.c rename : linux-2.6.11-xen-sparse/arch/xen/x86_64/kernel/irq.c => linux-2.6-xen-sparse/arch/xen/x86_64/kernel/irq.c rename : linux-2.6.11-xen-sparse/arch/xen/x86_64/kernel/ldt.c => linux-2.6-xen-sparse/arch/xen/x86_64/kernel/ldt.c rename : linux-2.6.11-xen-sparse/arch/xen/x86_64/kernel/mpparse.c => linux-2.6-xen-sparse/arch/xen/x86_64/kernel/mpparse.c rename : linux-2.6.11-xen-sparse/arch/xen/x86_64/kernel/pci-dma.c => linux-2.6-xen-sparse/arch/xen/x86_64/kernel/pci-dma.c rename : linux-2.6.11-xen-sparse/arch/xen/x86_64/kernel/pci-nommu.c => linux-2.6-xen-sparse/arch/xen/x86_64/kernel/pci-nommu.c rename : linux-2.6.11-xen-sparse/arch/xen/x86_64/kernel/process.c => linux-2.6-xen-sparse/arch/xen/x86_64/kernel/process.c rename : linux-2.6.11-xen-sparse/arch/xen/x86_64/kernel/setup.c => linux-2.6-xen-sparse/arch/xen/x86_64/kernel/setup.c rename : linux-2.6.11-xen-sparse/arch/xen/x86_64/kernel/setup64.c => linux-2.6-xen-sparse/arch/xen/x86_64/kernel/setup64.c rename : linux-2.6.11-xen-sparse/arch/xen/x86_64/kernel/signal.c => linux-2.6-xen-sparse/arch/xen/x86_64/kernel/signal.c rename : linux-2.6.11-xen-sparse/arch/xen/x86_64/kernel/smp.c => linux-2.6-xen-sparse/arch/xen/x86_64/kernel/smp.c rename : linux-2.6.11-xen-sparse/arch/xen/x86_64/kernel/smpboot.c => linux-2.6-xen-sparse/arch/xen/x86_64/kernel/smpboot.c rename : linux-2.6.11-xen-sparse/arch/xen/x86_64/kernel/traps.c => linux-2.6-xen-sparse/arch/xen/x86_64/kernel/traps.c rename : linux-2.6.11-xen-sparse/arch/xen/x86_64/kernel/vsyscall.c => linux-2.6-xen-sparse/arch/xen/x86_64/kernel/vsyscall.c rename : linux-2.6.11-xen-sparse/arch/xen/x86_64/kernel/x8664_ksyms.c => linux-2.6-xen-sparse/arch/xen/x86_64/kernel/x8664_ksyms.c rename : linux-2.6.11-xen-sparse/arch/xen/x86_64/kernel/xen_entry.S => linux-2.6-xen-sparse/arch/xen/x86_64/kernel/xen_entry.S rename : linux-2.6.11-xen-sparse/arch/xen/x86_64/mm/Makefile => linux-2.6-xen-sparse/arch/xen/x86_64/mm/Makefile rename : linux-2.6.11-xen-sparse/arch/xen/x86_64/mm/fault.c => linux-2.6-xen-sparse/arch/xen/x86_64/mm/fault.c rename : linux-2.6.11-xen-sparse/arch/xen/x86_64/mm/init.c => linux-2.6-xen-sparse/arch/xen/x86_64/mm/init.c rename : linux-2.6.11-xen-sparse/arch/xen/x86_64/mm/ioremap.c => linux-2.6-xen-sparse/arch/xen/x86_64/mm/ioremap.c rename : linux-2.6.11-xen-sparse/arch/xen/x86_64/mm/pageattr.c => linux-2.6-xen-sparse/arch/xen/x86_64/mm/pageattr.c rename : linux-2.6.11-xen-sparse/arch/xen/x86_64/pci/Makefile => linux-2.6-xen-sparse/arch/xen/x86_64/pci/Makefile rename : linux-2.6.11-xen-sparse/arch/xen/x86_64/pci/Makefile-BUS => linux-2.6-xen-sparse/arch/xen/x86_64/pci/Makefile-BUS rename : linux-2.6.11-xen-sparse/drivers/Makefile => linux-2.6-xen-sparse/drivers/Makefile rename : linux-2.6.11-xen-sparse/drivers/acpi/tables.c => linux-2.6-xen-sparse/drivers/acpi/tables.c rename : linux-2.6.11-xen-sparse/drivers/char/mem.c => linux-2.6-xen-sparse/drivers/char/mem.c rename : linux-2.6.11-xen-sparse/drivers/char/tty_io.c => linux-2.6-xen-sparse/drivers/char/tty_io.c rename : linux-2.6.11-xen-sparse/drivers/xen/Makefile => linux-2.6-xen-sparse/drivers/xen/Makefile rename : linux-2.6.11-xen-sparse/drivers/xen/balloon/Makefile => linux-2.6-xen-sparse/drivers/xen/balloon/Makefile rename : linux-2.6.11-xen-sparse/drivers/xen/balloon/balloon.c => linux-2.6-xen-sparse/drivers/xen/balloon/balloon.c rename : linux-2.6.11-xen-sparse/drivers/xen/blkback/Makefile => linux-2.6-xen-sparse/drivers/xen/blkback/Makefile rename : linux-2.6.11-xen-sparse/drivers/xen/blkback/blkback.c => linux-2.6-xen-sparse/drivers/xen/blkback/blkback.c rename : linux-2.6.11-xen-sparse/drivers/xen/blkback/common.h => linux-2.6-xen-sparse/drivers/xen/blkback/common.h rename : linux-2.6.11-xen-sparse/drivers/xen/blkback/control.c => linux-2.6-xen-sparse/drivers/xen/blkback/control.c rename : linux-2.6.11-xen-sparse/drivers/xen/blkback/interface.c => linux-2.6-xen-sparse/drivers/xen/blkback/interface.c rename : linux-2.6.11-xen-sparse/drivers/xen/blkback/vbd.c => linux-2.6-xen-sparse/drivers/xen/blkback/vbd.c rename : linux-2.6.11-xen-sparse/drivers/xen/blkfront/Kconfig => linux-2.6-xen-sparse/drivers/xen/blkfront/Kconfig rename : linux-2.6.11-xen-sparse/drivers/xen/blkfront/Makefile => linux-2.6-xen-sparse/drivers/xen/blkfront/Makefile rename : linux-2.6.11-xen-sparse/drivers/xen/blkfront/blkfront.c => linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c rename : linux-2.6.11-xen-sparse/drivers/xen/blkfront/block.h => linux-2.6-xen-sparse/drivers/xen/blkfront/block.h rename : linux-2.6.11-xen-sparse/drivers/xen/blkfront/vbd.c => linux-2.6-xen-sparse/drivers/xen/blkfront/vbd.c rename : linux-2.6.11-xen-sparse/drivers/xen/blktap/Makefile => linux-2.6-xen-sparse/drivers/xen/blktap/Makefile rename : linux-2.6.11-xen-sparse/drivers/xen/blktap/blktap.c => linux-2.6-xen-sparse/drivers/xen/blktap/blktap.c rename : linux-2.6.11-xen-sparse/drivers/xen/blktap/blktap.h => linux-2.6-xen-sparse/drivers/xen/blktap/blktap.h rename : linux-2.6.11-xen-sparse/drivers/xen/blktap/blktap_controlmsg.c => linux-2.6-xen-sparse/drivers/xen/blktap/blktap_controlmsg.c rename : linux-2.6.11-xen-sparse/drivers/xen/blktap/blktap_datapath.c => linux-2.6-xen-sparse/drivers/xen/blktap/blktap_datapath.c rename : linux-2.6.11-xen-sparse/drivers/xen/blktap/blktap_userdev.c => linux-2.6-xen-sparse/drivers/xen/blktap/blktap_userdev.c rename : linux-2.6.11-xen-sparse/drivers/xen/console/Makefile => linux-2.6-xen-sparse/drivers/xen/console/Makefile rename : linux-2.6.11-xen-sparse/drivers/xen/console/console.c => linux-2.6-xen-sparse/drivers/xen/console/console.c rename : linux-2.6.11-xen-sparse/drivers/xen/evtchn/Makefile => linux-2.6-xen-sparse/drivers/xen/evtchn/Makefile rename : linux-2.6.11-xen-sparse/drivers/xen/evtchn/evtchn.c => linux-2.6-xen-sparse/drivers/xen/evtchn/evtchn.c rename : linux-2.6.11-xen-sparse/drivers/xen/netback/Makefile => linux-2.6-xen-sparse/drivers/xen/netback/Makefile rename : linux-2.6.11-xen-sparse/drivers/xen/netback/common.h => linux-2.6-xen-sparse/drivers/xen/netback/common.h rename : linux-2.6.11-xen-sparse/drivers/xen/netback/control.c => linux-2.6-xen-sparse/drivers/xen/netback/control.c rename : linux-2.6.11-xen-sparse/drivers/xen/netback/interface.c => linux-2.6-xen-sparse/drivers/xen/netback/interface.c rename : linux-2.6.11-xen-sparse/drivers/xen/netback/loopback.c => linux-2.6-xen-sparse/drivers/xen/netback/loopback.c rename : linux-2.6.11-xen-sparse/drivers/xen/netback/netback.c => linux-2.6-xen-sparse/drivers/xen/netback/netback.c rename : linux-2.6.11-xen-sparse/drivers/xen/netfront/Kconfig => linux-2.6-xen-sparse/drivers/xen/netfront/Kconfig rename : linux-2.6.11-xen-sparse/drivers/xen/netfront/Makefile => linux-2.6-xen-sparse/drivers/xen/netfront/Makefile rename : linux-2.6.11-xen-sparse/drivers/xen/netfront/netfront.c => linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c rename : linux-2.6.11-xen-sparse/drivers/xen/privcmd/Makefile => linux-2.6-xen-sparse/drivers/xen/privcmd/Makefile rename : linux-2.6.11-xen-sparse/drivers/xen/privcmd/privcmd.c => linux-2.6-xen-sparse/drivers/xen/privcmd/privcmd.c rename : linux-2.6.11-xen-sparse/drivers/xen/usbback/common.h => linux-2.6-xen-sparse/drivers/xen/usbback/common.h rename : linux-2.6.11-xen-sparse/drivers/xen/usbback/control.c => linux-2.6-xen-sparse/drivers/xen/usbback/control.c rename : linux-2.6.11-xen-sparse/drivers/xen/usbback/interface.c => linux-2.6-xen-sparse/drivers/xen/usbback/interface.c rename : linux-2.6.11-xen-sparse/drivers/xen/usbback/usbback.c => linux-2.6-xen-sparse/drivers/xen/usbback/usbback.c rename : linux-2.6.11-xen-sparse/drivers/xen/usbfront/usbfront.c => linux-2.6-xen-sparse/drivers/xen/usbfront/usbfront.c rename : linux-2.6.11-xen-sparse/drivers/xen/usbfront/xhci.h => linux-2.6-xen-sparse/drivers/xen/usbfront/xhci.h rename : linux-2.6.11-xen-sparse/drivers/xen/xenbus/Makefile => linux-2.6-xen-sparse/drivers/xen/xenbus/Makefile rename : linux-2.6.11-xen-sparse/drivers/xen/xenbus/xenbus_comms.c => linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_comms.c rename : linux-2.6.11-xen-sparse/drivers/xen/xenbus/xenbus_comms.h => linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_comms.h rename : linux-2.6.11-xen-sparse/drivers/xen/xenbus/xenbus_probe.c => linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c rename : linux-2.6.11-xen-sparse/drivers/xen/xenbus/xenbus_xs.c => linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_xs.c rename : linux-2.6.11-xen-sparse/include/asm-generic/pgtable.h => linux-2.6-xen-sparse/include/asm-generic/pgtable.h rename : linux-2.6.11-xen-sparse/include/asm-xen/asm-i386/agp.h => linux-2.6-xen-sparse/include/asm-xen/asm-i386/agp.h rename : linux-2.6.11-xen-sparse/include/asm-xen/asm-i386/desc.h => linux-2.6-xen-sparse/include/asm-xen/asm-i386/desc.h rename : linux-2.6.11-xen-sparse/include/asm-xen/asm-i386/dma-mapping.h => linux-2.6-xen-sparse/include/asm-xen/asm-i386/dma-mapping.h rename : linux-2.6.11-xen-sparse/include/asm-xen/asm-i386/fixmap.h => linux-2.6-xen-sparse/include/asm-xen/asm-i386/fixmap.h rename : linux-2.6.11-xen-sparse/include/asm-xen/asm-i386/floppy.h => linux-2.6-xen-sparse/include/asm-xen/asm-i386/floppy.h rename : linux-2.6.11-xen-sparse/include/asm-xen/asm-i386/highmem.h => linux-2.6-xen-sparse/include/asm-xen/asm-i386/highmem.h rename : linux-2.6.11-xen-sparse/include/asm-xen/asm-i386/hypercall.h => linux-2.6-xen-sparse/include/asm-xen/asm-i386/hypercall.h rename : linux-2.6.11-xen-sparse/include/asm-xen/asm-i386/io.h => linux-2.6-xen-sparse/include/asm-xen/asm-i386/io.h rename : linux-2.6.11-xen-sparse/include/asm-xen/asm-i386/mach-xen/irq_vectors.h => linux-2.6-xen-sparse/include/asm-xen/asm-i386/mach-xen/irq_vectors.h rename : linux-2.6.11-xen-sparse/include/asm-xen/asm-i386/mach-xen/setup_arch_post.h => linux-2.6-xen-sparse/include/asm-xen/asm-i386/mach-xen/setup_arch_post.h rename : linux-2.6.11-xen-sparse/include/asm-xen/asm-i386/mach-xen/setup_arch_pre.h => linux-2.6-xen-sparse/include/asm-xen/asm-i386/mach-xen/setup_arch_pre.h rename : linux-2.6.11-xen-sparse/include/asm-xen/asm-i386/mach-xen/smpboot_hooks.h => linux-2.6-xen-sparse/include/asm-xen/asm-i386/mach-xen/smpboot_hooks.h rename : linux-2.6.11-xen-sparse/include/asm-xen/asm-i386/mmu.h => linux-2.6-xen-sparse/include/asm-xen/asm-i386/mmu.h rename : linux-2.6.11-xen-sparse/include/asm-xen/asm-i386/mmu_context.h => linux-2.6-xen-sparse/include/asm-xen/asm-i386/mmu_context.h rename : linux-2.6.11-xen-sparse/include/asm-xen/asm-i386/page.h => linux-2.6-xen-sparse/include/asm-xen/asm-i386/page.h rename : linux-2.6.11-xen-sparse/include/asm-xen/asm-i386/param.h => linux-2.6-xen-sparse/include/asm-xen/asm-i386/param.h rename : linux-2.6.11-xen-sparse/include/asm-xen/asm-i386/pci.h => linux-2.6-xen-sparse/include/asm-xen/asm-i386/pci.h rename : linux-2.6.11-xen-sparse/include/asm-xen/asm-i386/pgalloc.h => linux-2.6-xen-sparse/include/asm-xen/asm-i386/pgalloc.h rename : linux-2.6.11-xen-sparse/include/asm-xen/asm-i386/pgtable-2level-defs.h => linux-2.6-xen-sparse/include/asm-xen/asm-i386/pgtable-2level-defs.h rename : linux-2.6.11-xen-sparse/include/asm-xen/asm-i386/pgtable-2level.h => linux-2.6-xen-sparse/include/asm-xen/asm-i386/pgtable-2level.h rename : linux-2.6.11-xen-sparse/include/asm-xen/asm-i386/pgtable.h => linux-2.6-xen-sparse/include/asm-xen/asm-i386/pgtable.h rename : linux-2.6.11-xen-sparse/include/asm-xen/asm-i386/processor.h => linux-2.6-xen-sparse/include/asm-xen/asm-i386/processor.h rename : linux-2.6.11-xen-sparse/include/asm-xen/asm-i386/ptrace.h => linux-2.6-xen-sparse/include/asm-xen/asm-i386/ptrace.h rename : linux-2.6.11-xen-sparse/include/asm-xen/asm-i386/segment.h => linux-2.6-xen-sparse/include/asm-xen/asm-i386/segment.h rename : linux-2.6.11-xen-sparse/include/asm-xen/asm-i386/setup.h => linux-2.6-xen-sparse/include/asm-xen/asm-i386/setup.h rename : linux-2.6.11-xen-sparse/include/asm-xen/asm-i386/spinlock.h => linux-2.6-xen-sparse/include/asm-xen/asm-i386/spinlock.h rename : linux-2.6.11-xen-sparse/include/asm-xen/asm-i386/synch_bitops.h => linux-2.6-xen-sparse/include/asm-xen/asm-i386/synch_bitops.h rename : linux-2.6.11-xen-sparse/include/asm-xen/asm-i386/system.h => linux-2.6-xen-sparse/include/asm-xen/asm-i386/system.h rename : linux-2.6.11-xen-sparse/include/asm-xen/asm-i386/tlbflush.h => linux-2.6-xen-sparse/include/asm-xen/asm-i386/tlbflush.h rename : linux-2.6.11-xen-sparse/include/asm-xen/asm-i386/vga.h => linux-2.6-xen-sparse/include/asm-xen/asm-i386/vga.h rename : linux-2.6.11-xen-sparse/include/asm-xen/asm-x86_64/arch_hooks.h => linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/arch_hooks.h rename : linux-2.6.11-xen-sparse/include/asm-xen/asm-x86_64/bootsetup.h => linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/bootsetup.h rename : linux-2.6.11-xen-sparse/include/asm-xen/asm-x86_64/desc.h => linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/desc.h rename : linux-2.6.11-xen-sparse/include/asm-xen/asm-x86_64/dma-mapping.h => linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/dma-mapping.h rename : linux-2.6.11-xen-sparse/include/asm-xen/asm-x86_64/fixmap.h => linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/fixmap.h rename : linux-2.6.11-xen-sparse/include/asm-xen/asm-x86_64/floppy.h => linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/floppy.h rename : linux-2.6.11-xen-sparse/include/asm-xen/asm-x86_64/hypercall.h => linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/hypercall.h rename : linux-2.6.11-xen-sparse/include/asm-xen/asm-x86_64/io.h => linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/io.h rename : linux-2.6.11-xen-sparse/include/asm-xen/asm-x86_64/irq.h => linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/irq.h rename : linux-2.6.11-xen-sparse/include/asm-xen/asm-x86_64/mach-xen/io_ports.h => linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/mach-xen/io_ports.h rename : linux-2.6.11-xen-sparse/include/asm-xen/asm-x86_64/mach-xen/irq_vectors.h => linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/mach-xen/irq_vectors.h rename : linux-2.6.11-xen-sparse/include/asm-xen/asm-x86_64/mach-xen/mach_time.h => linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/mach-xen/mach_time.h rename : linux-2.6.11-xen-sparse/include/asm-xen/asm-x86_64/mach-xen/mach_timer.h => linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/mach-xen/mach_timer.h rename : linux-2.6.11-xen-sparse/include/asm-xen/asm-x86_64/mach-xen/setup_arch_post.h => linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/mach-xen/setup_arch_post.h rename : linux-2.6.11-xen-sparse/include/asm-xen/asm-x86_64/mach-xen/setup_arch_pre.h => linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/mach-xen/setup_arch_pre.h rename : linux-2.6.11-xen-sparse/include/asm-xen/asm-x86_64/mach-xen/smpboot_hooks.h => linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/mach-xen/smpboot_hooks.h rename : linux-2.6.11-xen-sparse/include/asm-xen/asm-x86_64/mmu_context.h => linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/mmu_context.h rename : linux-2.6.11-xen-sparse/include/asm-xen/asm-x86_64/page.h => linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/page.h rename : linux-2.6.11-xen-sparse/include/asm-xen/asm-x86_64/param.h => linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/param.h rename : linux-2.6.11-xen-sparse/include/asm-xen/asm-x86_64/pci.h => linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/pci.h rename : linux-2.6.11-xen-sparse/include/asm-xen/asm-x86_64/pda.h => linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/pda.h rename : linux-2.6.11-xen-sparse/include/asm-xen/asm-x86_64/pgalloc.h => linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/pgalloc.h rename : linux-2.6.11-xen-sparse/include/asm-xen/asm-x86_64/pgtable.h => linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/pgtable.h rename : linux-2.6.11-xen-sparse/include/asm-xen/asm-x86_64/processor.h => linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/processor.h rename : linux-2.6.11-xen-sparse/include/asm-xen/asm-x86_64/ptrace.h => linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/ptrace.h rename : linux-2.6.11-xen-sparse/include/asm-xen/asm-x86_64/segment.h => linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/segment.h rename : linux-2.6.11-xen-sparse/include/asm-xen/asm-x86_64/smp.h => linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/smp.h rename : linux-2.6.11-xen-sparse/include/asm-xen/asm-x86_64/system.h => linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/system.h rename : linux-2.6.11-xen-sparse/include/asm-xen/asm-x86_64/timer.h => linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/timer.h rename : linux-2.6.11-xen-sparse/include/asm-xen/asm-x86_64/tlbflush.h => linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/tlbflush.h rename : linux-2.6.11-xen-sparse/include/asm-xen/asm-x86_64/vga.h => linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/vga.h rename : linux-2.6.11-xen-sparse/include/asm-xen/asm-x86_64/xor.h => linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/xor.h rename : linux-2.6.11-xen-sparse/include/asm-xen/balloon.h => linux-2.6-xen-sparse/include/asm-xen/balloon.h rename : linux-2.6.11-xen-sparse/include/asm-xen/ctrl_if.h => linux-2.6-xen-sparse/include/asm-xen/ctrl_if.h rename : linux-2.6.11-xen-sparse/include/asm-xen/evtchn.h => linux-2.6-xen-sparse/include/asm-xen/evtchn.h rename : linux-2.6.11-xen-sparse/include/asm-xen/foreign_page.h => linux-2.6-xen-sparse/include/asm-xen/foreign_page.h rename : linux-2.6.11-xen-sparse/include/asm-xen/gnttab.h => linux-2.6-xen-sparse/include/asm-xen/gnttab.h rename : linux-2.6.11-xen-sparse/include/asm-xen/hypervisor.h => linux-2.6-xen-sparse/include/asm-xen/hypervisor.h rename : linux-2.6.11-xen-sparse/include/asm-xen/linux-public/privcmd.h => linux-2.6-xen-sparse/include/asm-xen/linux-public/privcmd.h rename : linux-2.6.11-xen-sparse/include/asm-xen/linux-public/suspend.h => linux-2.6-xen-sparse/include/asm-xen/linux-public/suspend.h rename : linux-2.6.11-xen-sparse/include/asm-xen/queues.h => linux-2.6-xen-sparse/include/asm-xen/queues.h rename : linux-2.6.11-xen-sparse/include/asm-xen/synch_bitops.h => linux-2.6-xen-sparse/include/asm-xen/synch_bitops.h rename : linux-2.6.11-xen-sparse/include/asm-xen/xen_proc.h => linux-2.6-xen-sparse/include/asm-xen/xen_proc.h rename : linux-2.6.11-xen-sparse/include/asm-xen/xenbus.h => linux-2.6-xen-sparse/include/asm-xen/xenbus.h rename : linux-2.6.11-xen-sparse/include/linux/gfp.h => linux-2.6-xen-sparse/include/linux/gfp.h rename : linux-2.6.11-xen-sparse/include/linux/highmem.h => linux-2.6-xen-sparse/include/linux/highmem.h rename : linux-2.6.11-xen-sparse/include/linux/irq.h => linux-2.6-xen-sparse/include/linux/irq.h rename : linux-2.6.11-xen-sparse/include/linux/mm.h => linux-2.6-xen-sparse/include/linux/mm.h rename : linux-2.6.11-xen-sparse/include/linux/skbuff.h => linux-2.6-xen-sparse/include/linux/skbuff.h rename : linux-2.6.11-xen-sparse/kernel/irq/manage.c => linux-2.6-xen-sparse/kernel/irq/manage.c rename : linux-2.6.11-xen-sparse/mkbuildtree => linux-2.6-xen-sparse/mkbuildtree rename : linux-2.6.11-xen-sparse/mm/highmem.c => linux-2.6-xen-sparse/mm/highmem.c rename : linux-2.6.11-xen-sparse/mm/memory.c => linux-2.6-xen-sparse/mm/memory.c rename : linux-2.6.11-xen-sparse/mm/mmap.c => linux-2.6-xen-sparse/mm/mmap.c rename : linux-2.6.11-xen-sparse/mm/page_alloc.c => linux-2.6-xen-sparse/mm/page_alloc.c rename : linux-2.6.11-xen-sparse/net/core/dev.c => linux-2.6-xen-sparse/net/core/dev.c rename : linux-2.6.11-xen-sparse/net/core/skbuff.c => linux-2.6-xen-sparse/net/core/skbuff.c
393 lines
9.7 KiB
C
393 lines
9.7 KiB
C
/*
|
|
* linux/kernel/irq/manage.c
|
|
*
|
|
* Copyright (C) 1992, 1998-2004 Linus Torvalds, Ingo Molnar
|
|
*
|
|
* This file contains driver APIs to the irq subsystem.
|
|
*/
|
|
|
|
#include <linux/irq.h>
|
|
#include <linux/module.h>
|
|
#include <linux/random.h>
|
|
#include <linux/interrupt.h>
|
|
|
|
#include "internals.h"
|
|
|
|
#ifdef CONFIG_SMP
|
|
|
|
cpumask_t irq_affinity[NR_IRQS] = { [0 ... NR_IRQS-1] = CPU_MASK_ALL };
|
|
|
|
/**
|
|
* synchronize_irq - wait for pending IRQ handlers (on other CPUs)
|
|
*
|
|
* This function waits for any pending IRQ handlers for this interrupt
|
|
* to complete before returning. If you use this function while
|
|
* holding a resource the IRQ handler may need you will deadlock.
|
|
*
|
|
* This function may be called - with care - from IRQ context.
|
|
*/
|
|
void synchronize_irq(unsigned int irq)
|
|
{
|
|
struct irq_desc *desc = irq_desc + irq;
|
|
|
|
while (desc->status & IRQ_INPROGRESS)
|
|
cpu_relax();
|
|
}
|
|
|
|
EXPORT_SYMBOL(synchronize_irq);
|
|
|
|
#endif
|
|
|
|
/**
|
|
* disable_irq_nosync - disable an irq without waiting
|
|
* @irq: Interrupt to disable
|
|
*
|
|
* Disable the selected interrupt line. Disables and Enables are
|
|
* nested.
|
|
* Unlike disable_irq(), this function does not ensure existing
|
|
* instances of the IRQ handler have completed before returning.
|
|
*
|
|
* This function may be called from IRQ context.
|
|
*/
|
|
void disable_irq_nosync(unsigned int irq)
|
|
{
|
|
irq_desc_t *desc = irq_desc + irq;
|
|
unsigned long flags;
|
|
|
|
spin_lock_irqsave(&desc->lock, flags);
|
|
if (!desc->depth++) {
|
|
desc->status |= IRQ_DISABLED;
|
|
desc->handler->disable(irq);
|
|
}
|
|
spin_unlock_irqrestore(&desc->lock, flags);
|
|
}
|
|
|
|
EXPORT_SYMBOL(disable_irq_nosync);
|
|
|
|
/**
|
|
* disable_irq - disable an irq and wait for completion
|
|
* @irq: Interrupt to disable
|
|
*
|
|
* Disable the selected interrupt line. Enables and Disables are
|
|
* nested.
|
|
* This function waits for any pending IRQ handlers for this interrupt
|
|
* to complete before returning. If you use this function while
|
|
* holding a resource the IRQ handler may need you will deadlock.
|
|
*
|
|
* This function may be called - with care - from IRQ context.
|
|
*/
|
|
void disable_irq(unsigned int irq)
|
|
{
|
|
irq_desc_t *desc = irq_desc + irq;
|
|
|
|
disable_irq_nosync(irq);
|
|
if (desc->action)
|
|
synchronize_irq(irq);
|
|
}
|
|
|
|
EXPORT_SYMBOL(disable_irq);
|
|
|
|
/**
|
|
* enable_irq - enable handling of an irq
|
|
* @irq: Interrupt to enable
|
|
*
|
|
* Undoes the effect of one call to disable_irq(). If this
|
|
* matches the last disable, processing of interrupts on this
|
|
* IRQ line is re-enabled.
|
|
*
|
|
* This function may be called from IRQ context.
|
|
*/
|
|
void enable_irq(unsigned int irq)
|
|
{
|
|
irq_desc_t *desc = irq_desc + irq;
|
|
unsigned long flags;
|
|
|
|
spin_lock_irqsave(&desc->lock, flags);
|
|
switch (desc->depth) {
|
|
case 0:
|
|
WARN_ON(1);
|
|
break;
|
|
case 1: {
|
|
unsigned int status = desc->status & ~IRQ_DISABLED;
|
|
|
|
desc->status = status;
|
|
if ((status & (IRQ_PENDING | IRQ_REPLAY)) == IRQ_PENDING) {
|
|
desc->status = status | IRQ_REPLAY;
|
|
hw_resend_irq(desc->handler,irq);
|
|
}
|
|
desc->handler->enable(irq);
|
|
/* fall-through */
|
|
}
|
|
default:
|
|
desc->depth--;
|
|
}
|
|
spin_unlock_irqrestore(&desc->lock, flags);
|
|
}
|
|
|
|
EXPORT_SYMBOL(enable_irq);
|
|
|
|
/*
|
|
* Internal function that tells the architecture code whether a
|
|
* particular irq has been exclusively allocated or is available
|
|
* for driver use.
|
|
*/
|
|
int can_request_irq(unsigned int irq, unsigned long irqflags)
|
|
{
|
|
struct irqaction *action;
|
|
|
|
if (irq >= NR_IRQS)
|
|
return 0;
|
|
|
|
action = irq_desc[irq].action;
|
|
if (action)
|
|
if (irqflags & action->flags & SA_SHIRQ)
|
|
action = NULL;
|
|
|
|
return !action;
|
|
}
|
|
|
|
/**
|
|
* setup_irq - register an irqaction structure
|
|
* @irq: Interrupt to register
|
|
* @irqaction: The irqaction structure to be registered
|
|
*
|
|
* Normally called by request_irq, this function can be used
|
|
* directly to allocate special interrupts that are part of the
|
|
* architecture.
|
|
*/
|
|
int setup_irq(unsigned int irq, struct irqaction * new)
|
|
{
|
|
struct irq_desc *desc = irq_desc + irq;
|
|
struct irqaction *old, **p;
|
|
unsigned long flags;
|
|
int shared = 0;
|
|
|
|
if (desc->handler == &no_irq_type)
|
|
return -ENOSYS;
|
|
/*
|
|
* Some drivers like serial.c use request_irq() heavily,
|
|
* so we have to be careful not to interfere with a
|
|
* running system.
|
|
*/
|
|
if (new->flags & SA_SAMPLE_RANDOM) {
|
|
/*
|
|
* This function might sleep, we want to call it first,
|
|
* outside of the atomic block.
|
|
* Yes, this might clear the entropy pool if the wrong
|
|
* driver is attempted to be loaded, without actually
|
|
* installing a new handler, but is this really a problem,
|
|
* only the sysadmin is able to do this.
|
|
*/
|
|
rand_initialize_irq(irq);
|
|
}
|
|
|
|
/*
|
|
* The following block of code has to be executed atomically
|
|
*/
|
|
spin_lock_irqsave(&desc->lock,flags);
|
|
p = &desc->action;
|
|
if ((old = *p) != NULL) {
|
|
/* Can't share interrupts unless both agree to */
|
|
if (!(old->flags & new->flags & SA_SHIRQ)) {
|
|
spin_unlock_irqrestore(&desc->lock,flags);
|
|
return -EBUSY;
|
|
}
|
|
|
|
/* add new interrupt at end of irq queue */
|
|
do {
|
|
p = &old->next;
|
|
old = *p;
|
|
} while (old);
|
|
shared = 1;
|
|
}
|
|
|
|
*p = new;
|
|
|
|
if (!shared) {
|
|
desc->depth = 0;
|
|
desc->status &= ~(IRQ_DISABLED | IRQ_AUTODETECT |
|
|
IRQ_WAITING | IRQ_INPROGRESS);
|
|
if (desc->handler->startup)
|
|
desc->handler->startup(irq);
|
|
else
|
|
desc->handler->enable(irq);
|
|
}
|
|
spin_unlock_irqrestore(&desc->lock,flags);
|
|
|
|
new->irq = irq;
|
|
register_irq_proc(irq);
|
|
new->dir = NULL;
|
|
register_handler_proc(irq, new);
|
|
|
|
return 0;
|
|
}
|
|
|
|
/*
|
|
* teardown_irq - unregister an irqaction
|
|
* @irq: Interrupt line being freed
|
|
* @old: Pointer to the irqaction that is to be unregistered
|
|
*
|
|
* This function is called by free_irq and does the actual
|
|
* business of unregistering the handler. It exists as a
|
|
* seperate function to enable handlers to be unregistered
|
|
* for irqactions that have been allocated statically at
|
|
* boot time.
|
|
*
|
|
* This function must not be called from interrupt context.
|
|
*/
|
|
int teardown_irq(unsigned int irq, struct irqaction * old)
|
|
{
|
|
struct irq_desc *desc;
|
|
struct irqaction **p;
|
|
unsigned long flags;
|
|
|
|
if (irq >= NR_IRQS)
|
|
return -ENOENT;
|
|
|
|
desc = irq_desc + irq;
|
|
spin_lock_irqsave(&desc->lock,flags);
|
|
p = &desc->action;
|
|
for (;;) {
|
|
struct irqaction * action = *p;
|
|
|
|
if (action) {
|
|
struct irqaction **pp = p;
|
|
|
|
p = &action->next;
|
|
if (action != old)
|
|
continue;
|
|
|
|
/* Found it - now remove it from the list of entries */
|
|
*pp = action->next;
|
|
if (!desc->action) {
|
|
desc->status |= IRQ_DISABLED;
|
|
if (desc->handler->shutdown)
|
|
desc->handler->shutdown(irq);
|
|
else
|
|
desc->handler->disable(irq);
|
|
}
|
|
spin_unlock_irqrestore(&desc->lock,flags);
|
|
unregister_handler_proc(irq, action);
|
|
|
|
/* Make sure it's not being used on another CPU */
|
|
synchronize_irq(irq);
|
|
return 0;
|
|
}
|
|
printk(KERN_ERR "Trying to teardown free IRQ%d\n",irq);
|
|
spin_unlock_irqrestore(&desc->lock,flags);
|
|
return -ENOENT;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* free_irq - free an interrupt
|
|
* @irq: Interrupt line to free
|
|
* @dev_id: Device identity to free
|
|
*
|
|
* Remove an interrupt handler. The handler is removed and if the
|
|
* interrupt line is no longer in use by any driver it is disabled.
|
|
* On a shared IRQ the caller must ensure the interrupt is disabled
|
|
* on the card it drives before calling this function. The function
|
|
* does not return until any executing interrupts for this IRQ
|
|
* have completed.
|
|
*
|
|
* This function must not be called from interrupt context.
|
|
*/
|
|
void free_irq(unsigned int irq, void *dev_id)
|
|
{
|
|
struct irq_desc *desc;
|
|
struct irqaction *action;
|
|
unsigned long flags;
|
|
|
|
if (irq >= NR_IRQS)
|
|
return;
|
|
|
|
desc = irq_desc + irq;
|
|
spin_lock_irqsave(&desc->lock,flags);
|
|
for (action = desc->action; action != NULL; action = action->next) {
|
|
if (action->dev_id != dev_id)
|
|
continue;
|
|
|
|
spin_unlock_irqrestore(&desc->lock,flags);
|
|
|
|
if (teardown_irq(irq, action) == 0)
|
|
kfree(action);
|
|
return;
|
|
}
|
|
printk(KERN_ERR "Trying to free free IRQ%d\n",irq);
|
|
spin_unlock_irqrestore(&desc->lock,flags);
|
|
return;
|
|
}
|
|
|
|
EXPORT_SYMBOL(free_irq);
|
|
|
|
/**
|
|
* request_irq - allocate an interrupt line
|
|
* @irq: Interrupt line to allocate
|
|
* @handler: Function to be called when the IRQ occurs
|
|
* @irqflags: Interrupt type flags
|
|
* @devname: An ascii name for the claiming device
|
|
* @dev_id: A cookie passed back to the handler function
|
|
*
|
|
* This call allocates interrupt resources and enables the
|
|
* interrupt line and IRQ handling. From the point this
|
|
* call is made your handler function may be invoked. Since
|
|
* your handler function must clear any interrupt the board
|
|
* raises, you must take care both to initialise your hardware
|
|
* and to set up the interrupt handler in the right order.
|
|
*
|
|
* Dev_id must be globally unique. Normally the address of the
|
|
* device data structure is used as the cookie. Since the handler
|
|
* receives this value it makes sense to use it.
|
|
*
|
|
* If your interrupt is shared you must pass a non NULL dev_id
|
|
* as this is required when freeing the interrupt.
|
|
*
|
|
* Flags:
|
|
*
|
|
* SA_SHIRQ Interrupt is shared
|
|
* SA_INTERRUPT Disable local interrupts while processing
|
|
* SA_SAMPLE_RANDOM The interrupt can be used for entropy
|
|
*
|
|
*/
|
|
int request_irq(unsigned int irq,
|
|
irqreturn_t (*handler)(int, void *, struct pt_regs *),
|
|
unsigned long irqflags, const char * devname, void *dev_id)
|
|
{
|
|
struct irqaction * action;
|
|
int retval;
|
|
|
|
/*
|
|
* Sanity-check: shared interrupts must pass in a real dev-ID,
|
|
* otherwise we'll have trouble later trying to figure out
|
|
* which interrupt is which (messes up the interrupt freeing
|
|
* logic etc).
|
|
*/
|
|
if ((irqflags & SA_SHIRQ) && !dev_id)
|
|
return -EINVAL;
|
|
if (irq >= NR_IRQS)
|
|
return -EINVAL;
|
|
if (!handler)
|
|
return -EINVAL;
|
|
|
|
action = kmalloc(sizeof(struct irqaction), GFP_ATOMIC);
|
|
if (!action)
|
|
return -ENOMEM;
|
|
|
|
action->handler = handler;
|
|
action->flags = irqflags;
|
|
cpus_clear(action->mask);
|
|
action->name = devname;
|
|
action->next = NULL;
|
|
action->dev_id = dev_id;
|
|
|
|
retval = setup_irq(irq, action);
|
|
if (retval)
|
|
kfree(action);
|
|
|
|
return retval;
|
|
}
|
|
|
|
EXPORT_SYMBOL(request_irq);
|
|
|