diff options
Diffstat (limited to 'drivers/xen')
| -rw-r--r-- | drivers/xen/events.c | 9 | ||||
| -rw-r--r-- | drivers/xen/pci.c | 2 | ||||
| -rw-r--r-- | drivers/xen/tmem.c | 8 |
3 files changed, 14 insertions, 5 deletions
diff --git a/drivers/xen/events.c b/drivers/xen/events.c index 6908e4ce2a0d..7595581d032c 100644 --- a/drivers/xen/events.c +++ b/drivers/xen/events.c | |||
| @@ -827,6 +827,9 @@ int bind_evtchn_to_irq(unsigned int evtchn) | |||
| 827 | handle_edge_irq, "event"); | 827 | handle_edge_irq, "event"); |
| 828 | 828 | ||
| 829 | xen_irq_info_evtchn_init(irq, evtchn); | 829 | xen_irq_info_evtchn_init(irq, evtchn); |
| 830 | } else { | ||
| 831 | struct irq_info *info = info_for_irq(irq); | ||
| 832 | WARN_ON(info == NULL || info->type != IRQT_EVTCHN); | ||
| 830 | } | 833 | } |
| 831 | 834 | ||
| 832 | out: | 835 | out: |
| @@ -862,6 +865,9 @@ static int bind_ipi_to_irq(unsigned int ipi, unsigned int cpu) | |||
| 862 | xen_irq_info_ipi_init(cpu, irq, evtchn, ipi); | 865 | xen_irq_info_ipi_init(cpu, irq, evtchn, ipi); |
| 863 | 866 | ||
| 864 | bind_evtchn_to_cpu(evtchn, cpu); | 867 | bind_evtchn_to_cpu(evtchn, cpu); |
| 868 | } else { | ||
| 869 | struct irq_info *info = info_for_irq(irq); | ||
| 870 | WARN_ON(info == NULL || info->type != IRQT_IPI); | ||
| 865 | } | 871 | } |
| 866 | 872 | ||
| 867 | out: | 873 | out: |
| @@ -939,6 +945,9 @@ int bind_virq_to_irq(unsigned int virq, unsigned int cpu) | |||
| 939 | xen_irq_info_virq_init(cpu, irq, evtchn, virq); | 945 | xen_irq_info_virq_init(cpu, irq, evtchn, virq); |
| 940 | 946 | ||
| 941 | bind_evtchn_to_cpu(evtchn, cpu); | 947 | bind_evtchn_to_cpu(evtchn, cpu); |
| 948 | } else { | ||
| 949 | struct irq_info *info = info_for_irq(irq); | ||
| 950 | WARN_ON(info == NULL || info->type != IRQT_VIRQ); | ||
| 942 | } | 951 | } |
| 943 | 952 | ||
| 944 | out: | 953 | out: |
diff --git a/drivers/xen/pci.c b/drivers/xen/pci.c index b84bf0b6cc34..18fff88254eb 100644 --- a/drivers/xen/pci.c +++ b/drivers/xen/pci.c | |||
| @@ -59,7 +59,7 @@ static int xen_add_device(struct device *dev) | |||
| 59 | 59 | ||
| 60 | #ifdef CONFIG_ACPI | 60 | #ifdef CONFIG_ACPI |
| 61 | handle = DEVICE_ACPI_HANDLE(&pci_dev->dev); | 61 | handle = DEVICE_ACPI_HANDLE(&pci_dev->dev); |
| 62 | if (!handle) | 62 | if (!handle && pci_dev->bus->bridge) |
| 63 | handle = DEVICE_ACPI_HANDLE(pci_dev->bus->bridge); | 63 | handle = DEVICE_ACPI_HANDLE(pci_dev->bus->bridge); |
| 64 | #ifdef CONFIG_PCI_IOV | 64 | #ifdef CONFIG_PCI_IOV |
| 65 | if (!handle && pci_dev->is_virtfn) | 65 | if (!handle && pci_dev->is_virtfn) |
diff --git a/drivers/xen/tmem.c b/drivers/xen/tmem.c index dcb79521e6c8..89f264c67420 100644 --- a/drivers/xen/tmem.c +++ b/drivers/xen/tmem.c | |||
| @@ -269,7 +269,7 @@ static inline struct tmem_oid oswiz(unsigned type, u32 ind) | |||
| 269 | } | 269 | } |
| 270 | 270 | ||
| 271 | /* returns 0 if the page was successfully put into frontswap, -1 if not */ | 271 | /* returns 0 if the page was successfully put into frontswap, -1 if not */ |
| 272 | static int tmem_frontswap_put_page(unsigned type, pgoff_t offset, | 272 | static int tmem_frontswap_store(unsigned type, pgoff_t offset, |
| 273 | struct page *page) | 273 | struct page *page) |
| 274 | { | 274 | { |
| 275 | u64 ind64 = (u64)offset; | 275 | u64 ind64 = (u64)offset; |
| @@ -295,7 +295,7 @@ static int tmem_frontswap_put_page(unsigned type, pgoff_t offset, | |||
| 295 | * returns 0 if the page was successfully gotten from frontswap, -1 if | 295 | * returns 0 if the page was successfully gotten from frontswap, -1 if |
| 296 | * was not present (should never happen!) | 296 | * was not present (should never happen!) |
| 297 | */ | 297 | */ |
| 298 | static int tmem_frontswap_get_page(unsigned type, pgoff_t offset, | 298 | static int tmem_frontswap_load(unsigned type, pgoff_t offset, |
| 299 | struct page *page) | 299 | struct page *page) |
| 300 | { | 300 | { |
| 301 | u64 ind64 = (u64)offset; | 301 | u64 ind64 = (u64)offset; |
| @@ -362,8 +362,8 @@ static int __init no_frontswap(char *s) | |||
| 362 | __setup("nofrontswap", no_frontswap); | 362 | __setup("nofrontswap", no_frontswap); |
| 363 | 363 | ||
| 364 | static struct frontswap_ops __initdata tmem_frontswap_ops = { | 364 | static struct frontswap_ops __initdata tmem_frontswap_ops = { |
| 365 | .put_page = tmem_frontswap_put_page, | 365 | .store = tmem_frontswap_store, |
| 366 | .get_page = tmem_frontswap_get_page, | 366 | .load = tmem_frontswap_load, |
| 367 | .invalidate_page = tmem_frontswap_flush_page, | 367 | .invalidate_page = tmem_frontswap_flush_page, |
| 368 | .invalidate_area = tmem_frontswap_flush_area, | 368 | .invalidate_area = tmem_frontswap_flush_area, |
| 369 | .init = tmem_frontswap_init | 369 | .init = tmem_frontswap_init |
