diff options
author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2013-08-30 03:39:53 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2013-09-13 09:09:52 -0400 |
commit | 0244ad004a54e39308d495fee0a2e637f8b5c317 (patch) | |
tree | b59152dc7cf57e7ffb9c8388ae9095e665406633 /drivers/pci/msi.c | |
parent | 5a7d8a28080caed7fd4cb1b81d092adac4445e8e (diff) |
Remove GENERIC_HARDIRQ config option
After the last architecture switched to generic hard irqs the config
options HAVE_GENERIC_HARDIRQS & GENERIC_HARDIRQS and the related code
for !CONFIG_GENERIC_HARDIRQS can be removed.
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/pci/msi.c')
-rw-r--r-- | drivers/pci/msi.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/drivers/pci/msi.c b/drivers/pci/msi.c index b35f93c232cf..d5f90d6383bc 100644 --- a/drivers/pci/msi.c +++ b/drivers/pci/msi.c | |||
@@ -30,7 +30,6 @@ static int pci_msi_enable = 1; | |||
30 | 30 | ||
31 | /* Arch hooks */ | 31 | /* Arch hooks */ |
32 | 32 | ||
33 | #if defined(CONFIG_GENERIC_HARDIRQS) | ||
34 | int __weak arch_setup_msi_irq(struct pci_dev *dev, struct msi_desc *desc) | 33 | int __weak arch_setup_msi_irq(struct pci_dev *dev, struct msi_desc *desc) |
35 | { | 34 | { |
36 | struct msi_chip *chip = dev->bus->msi; | 35 | struct msi_chip *chip = dev->bus->msi; |
@@ -67,21 +66,6 @@ int __weak arch_msi_check_device(struct pci_dev *dev, int nvec, int type) | |||
67 | 66 | ||
68 | return chip->check_device(chip, dev, nvec, type); | 67 | return chip->check_device(chip, dev, nvec, type); |
69 | } | 68 | } |
70 | #else | ||
71 | int __weak arch_setup_msi_irq(struct pci_dev *dev, struct msi_desc *desc) | ||
72 | { | ||
73 | return -ENOSYS; | ||
74 | } | ||
75 | |||
76 | void __weak arch_teardown_msi_irq(unsigned int irq) | ||
77 | { | ||
78 | } | ||
79 | |||
80 | int __weak arch_msi_check_device(struct pci_dev *dev, int nvec, int type) | ||
81 | { | ||
82 | return 0; | ||
83 | } | ||
84 | #endif /* CONFIG_GENERIC_HARDIRQS */ | ||
85 | 69 | ||
86 | int __weak arch_setup_msi_irqs(struct pci_dev *dev, int nvec, int type) | 70 | int __weak arch_setup_msi_irqs(struct pci_dev *dev, int nvec, int type) |
87 | { | 71 | { |
@@ -245,8 +229,6 @@ static void msix_mask_irq(struct msi_desc *desc, u32 flag) | |||
245 | desc->masked = __msix_mask_irq(desc, flag); | 229 | desc->masked = __msix_mask_irq(desc, flag); |
246 | } | 230 | } |
247 | 231 | ||
248 | #ifdef CONFIG_GENERIC_HARDIRQS | ||
249 | |||
250 | static void msi_set_mask_bit(struct irq_data *data, u32 flag) | 232 | static void msi_set_mask_bit(struct irq_data *data, u32 flag) |
251 | { | 233 | { |
252 | struct msi_desc *desc = irq_data_get_msi(data); | 234 | struct msi_desc *desc = irq_data_get_msi(data); |
@@ -270,8 +252,6 @@ void unmask_msi_irq(struct irq_data *data) | |||
270 | msi_set_mask_bit(data, 0); | 252 | msi_set_mask_bit(data, 0); |
271 | } | 253 | } |
272 | 254 | ||
273 | #endif /* CONFIG_GENERIC_HARDIRQS */ | ||
274 | |||
275 | void __read_msi_msg(struct msi_desc *entry, struct msi_msg *msg) | 255 | void __read_msi_msg(struct msi_desc *entry, struct msi_msg *msg) |
276 | { | 256 | { |
277 | BUG_ON(entry->dev->current_state != PCI_D0); | 257 | BUG_ON(entry->dev->current_state != PCI_D0); |
@@ -382,10 +362,8 @@ static void free_msi_irqs(struct pci_dev *dev) | |||
382 | nvec = entry->nvec_used; | 362 | nvec = entry->nvec_used; |
383 | else | 363 | else |
384 | nvec = 1 << entry->msi_attrib.multiple; | 364 | nvec = 1 << entry->msi_attrib.multiple; |
385 | #ifdef CONFIG_GENERIC_HARDIRQS | ||
386 | for (i = 0; i < nvec; i++) | 365 | for (i = 0; i < nvec; i++) |
387 | BUG_ON(irq_has_action(entry->irq + i)); | 366 | BUG_ON(irq_has_action(entry->irq + i)); |
388 | #endif | ||
389 | } | 367 | } |
390 | 368 | ||
391 | arch_teardown_msi_irqs(dev); | 369 | arch_teardown_msi_irqs(dev); |