[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] [IA64] Enable more sn2 features under Xen
# HG changeset patch # User Alex Williamson <alex.williamson@xxxxxx> # Date 1182287840 21600 # Node ID 39a95178edbf6106f42918d3f6a7db914d1a9750 # Parent 7d4c40c21690cfaabf29635e4e31d13d616a110a [IA64] Enable more sn2 features under Xen Signed-off-by: Jes Sorensen <jes@xxxxxxx> --- xen/arch/ia64/linux-xen/sn/kernel/io_init.c | 4 ++-- xen/arch/ia64/linux-xen/sn/kernel/irq.c | 15 ++++++++------- 2 files changed, 10 insertions(+), 9 deletions(-) diff -r 7d4c40c21690 -r 39a95178edbf xen/arch/ia64/linux-xen/sn/kernel/io_init.c --- a/xen/arch/ia64/linux-xen/sn/kernel/io_init.c Mon Jun 18 13:50:42 2007 -0600 +++ b/xen/arch/ia64/linux-xen/sn/kernel/io_init.c Tue Jun 19 15:17:20 2007 -0600 @@ -182,6 +182,7 @@ sn_pcidev_info_get(struct pci_dev *dev) } return NULL; } +#endif /* Older PROM flush WAR * @@ -361,6 +362,7 @@ sn_pci_window_fixup(struct pci_dev *dev, controller->window = new_window; } +#ifndef XEN void sn_pci_unfixup_slot(struct pci_dev *dev) { struct pci_dev *host_pci_dev = SN_PCIDEV_INFO(dev)->host_pci_dev; @@ -656,9 +658,7 @@ static int __init sn_io_early_init(void) static int __init sn_io_early_init(void) { int i, j; -#ifndef XEN struct pci_dev *pci_dev = NULL; -#endif if (!ia64_platform_is("sn2") || IS_RUNNING_ON_FAKE_PROM()) return 0; diff -r 7d4c40c21690 -r 39a95178edbf xen/arch/ia64/linux-xen/sn/kernel/irq.c --- a/xen/arch/ia64/linux-xen/sn/kernel/irq.c Mon Jun 18 13:50:42 2007 -0600 +++ b/xen/arch/ia64/linux-xen/sn/kernel/irq.c Tue Jun 19 15:17:20 2007 -0600 @@ -27,6 +27,7 @@ #include <asm/sn/sn_sal.h> #ifdef XEN +#define pci_dev_get(dev) do {} while(0) #define move_native_irq(foo) do {} while(0) #endif @@ -264,7 +265,6 @@ void sn_irq_init(void) } } -#ifndef XEN static void register_intr_pda(struct sn_irq_info *sn_irq_info) { int irq = sn_irq_info->irq_irq; @@ -278,6 +278,7 @@ static void register_intr_pda(struct sn_ pdacpu(cpu)->sn_first_irq = irq; } +#ifndef XEN static void unregister_intr_pda(struct sn_irq_info *sn_irq_info) { int irq = sn_irq_info->irq_irq; @@ -339,9 +340,7 @@ static void unregister_intr_pda(struct s spin_unlock(&sn_irq_info_lock); #endif } -#endif /* XEN */ - -#ifndef XEN + static void sn_irq_info_free(struct rcu_head *head) { struct sn_irq_info *sn_irq_info; @@ -351,7 +350,6 @@ static void sn_irq_info_free(struct rcu_ } #endif -#ifndef XEN void sn_irq_fixup(struct pci_dev *pci_dev, struct sn_irq_info *sn_irq_info) { nasid_t nasid = sn_irq_info->irq_nasid; @@ -360,7 +358,9 @@ void sn_irq_fixup(struct pci_dev *pci_de pci_dev_get(pci_dev); sn_irq_info->irq_cpuid = cpu; +#ifndef XEN sn_irq_info->irq_pciioinfo = SN_PCIDEV_INFO(pci_dev); +#endif /* link it into the sn_irq[irq] list */ spin_lock(&sn_irq_info_lock); @@ -379,6 +379,7 @@ void sn_irq_fixup(struct pci_dev *pci_de void sn_irq_unfixup(struct pci_dev *pci_dev) { +#ifndef XEN struct sn_irq_info *sn_irq_info; /* Only cleanup IRQ stuff if this device has a host bus context */ @@ -408,8 +409,8 @@ void sn_irq_unfixup(struct pci_dev *pci_ #endif pci_dev_put(pci_dev); -} -#endif +#endif +} static inline void sn_call_force_intr_provider(struct sn_irq_info *sn_irq_info) _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |