diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2006-07-01 22:29:17 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-07-02 16:58:47 -0400 |
commit | 121a4226e89aae6654d667d58ab72df740b97b92 (patch) | |
tree | 906a351589bd914dec718a106291cf856a13fcb2 | |
parent | 4879d77c4c2fdc81ba1ff0ad56fa41b3676d0472 (diff) |
[PATCH] irq-flags: IA64: Use the new IRQF_ constants
Use the new IRQF_ constants and remove the SA_INTERRUPT define
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: "Luck, Tony" <tony.luck@intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | arch/ia64/hp/sim/simserial.c | 2 | ||||
-rw-r--r-- | arch/ia64/kernel/irq_ia64.c | 2 | ||||
-rw-r--r-- | arch/ia64/kernel/mca.c | 12 | ||||
-rw-r--r-- | arch/ia64/kernel/perfmon.c | 2 | ||||
-rw-r--r-- | arch/ia64/kernel/time.c | 2 | ||||
-rw-r--r-- | arch/ia64/sn/kernel/huberror.c | 4 | ||||
-rw-r--r-- | arch/ia64/sn/kernel/xpc_channel.c | 2 | ||||
-rw-r--r-- | arch/ia64/sn/pci/pcibr/pcibr_provider.c | 2 | ||||
-rw-r--r-- | arch/ia64/sn/pci/tioca_provider.c | 2 | ||||
-rw-r--r-- | arch/ia64/sn/pci/tioce_provider.c | 2 | ||||
-rw-r--r-- | include/asm-ia64/irq.h | 2 | ||||
-rw-r--r-- | include/asm-ia64/signal.h | 4 |
12 files changed, 18 insertions, 20 deletions
diff --git a/arch/ia64/hp/sim/simserial.c b/arch/ia64/hp/sim/simserial.c index 33a3bbc8f67f..0daacc20ed36 100644 --- a/arch/ia64/hp/sim/simserial.c +++ b/arch/ia64/hp/sim/simserial.c | |||
@@ -46,7 +46,7 @@ | |||
46 | 46 | ||
47 | #define NR_PORTS 1 /* only one port for now */ | 47 | #define NR_PORTS 1 /* only one port for now */ |
48 | 48 | ||
49 | #define IRQ_T(info) ((info->flags & ASYNC_SHARE_IRQ) ? SA_SHIRQ : SA_INTERRUPT) | 49 | #define IRQ_T(info) ((info->flags & ASYNC_SHARE_IRQ) ? IRQF_SHARED : IRQF_DISABLED) |
50 | 50 | ||
51 | #define SSC_GETCHAR 21 | 51 | #define SSC_GETCHAR 21 |
52 | 52 | ||
diff --git a/arch/ia64/kernel/irq_ia64.c b/arch/ia64/kernel/irq_ia64.c index 3e6fcb056bcb..a041367f043b 100644 --- a/arch/ia64/kernel/irq_ia64.c +++ b/arch/ia64/kernel/irq_ia64.c | |||
@@ -235,7 +235,7 @@ extern irqreturn_t handle_IPI (int irq, void *dev_id, struct pt_regs *regs); | |||
235 | 235 | ||
236 | static struct irqaction ipi_irqaction = { | 236 | static struct irqaction ipi_irqaction = { |
237 | .handler = handle_IPI, | 237 | .handler = handle_IPI, |
238 | .flags = SA_INTERRUPT, | 238 | .flags = IRQF_DISABLED, |
239 | .name = "IPI" | 239 | .name = "IPI" |
240 | }; | 240 | }; |
241 | #endif | 241 | #endif |
diff --git a/arch/ia64/kernel/mca.c b/arch/ia64/kernel/mca.c index 584df1772845..eb8e8dc5ac8e 100644 --- a/arch/ia64/kernel/mca.c +++ b/arch/ia64/kernel/mca.c | |||
@@ -1457,38 +1457,38 @@ __setup("disable_cpe_poll", ia64_mca_disable_cpe_polling); | |||
1457 | 1457 | ||
1458 | static struct irqaction cmci_irqaction = { | 1458 | static struct irqaction cmci_irqaction = { |
1459 | .handler = ia64_mca_cmc_int_handler, | 1459 | .handler = ia64_mca_cmc_int_handler, |
1460 | .flags = SA_INTERRUPT, | 1460 | .flags = IRQF_DISABLED, |
1461 | .name = "cmc_hndlr" | 1461 | .name = "cmc_hndlr" |
1462 | }; | 1462 | }; |
1463 | 1463 | ||
1464 | static struct irqaction cmcp_irqaction = { | 1464 | static struct irqaction cmcp_irqaction = { |
1465 | .handler = ia64_mca_cmc_int_caller, | 1465 | .handler = ia64_mca_cmc_int_caller, |
1466 | .flags = SA_INTERRUPT, | 1466 | .flags = IRQF_DISABLED, |
1467 | .name = "cmc_poll" | 1467 | .name = "cmc_poll" |
1468 | }; | 1468 | }; |
1469 | 1469 | ||
1470 | static struct irqaction mca_rdzv_irqaction = { | 1470 | static struct irqaction mca_rdzv_irqaction = { |
1471 | .handler = ia64_mca_rendez_int_handler, | 1471 | .handler = ia64_mca_rendez_int_handler, |
1472 | .flags = SA_INTERRUPT, | 1472 | .flags = IRQF_DISABLED, |
1473 | .name = "mca_rdzv" | 1473 | .name = "mca_rdzv" |
1474 | }; | 1474 | }; |
1475 | 1475 | ||
1476 | static struct irqaction mca_wkup_irqaction = { | 1476 | static struct irqaction mca_wkup_irqaction = { |
1477 | .handler = ia64_mca_wakeup_int_handler, | 1477 | .handler = ia64_mca_wakeup_int_handler, |
1478 | .flags = SA_INTERRUPT, | 1478 | .flags = IRQF_DISABLED, |
1479 | .name = "mca_wkup" | 1479 | .name = "mca_wkup" |
1480 | }; | 1480 | }; |
1481 | 1481 | ||
1482 | #ifdef CONFIG_ACPI | 1482 | #ifdef CONFIG_ACPI |
1483 | static struct irqaction mca_cpe_irqaction = { | 1483 | static struct irqaction mca_cpe_irqaction = { |
1484 | .handler = ia64_mca_cpe_int_handler, | 1484 | .handler = ia64_mca_cpe_int_handler, |
1485 | .flags = SA_INTERRUPT, | 1485 | .flags = IRQF_DISABLED, |
1486 | .name = "cpe_hndlr" | 1486 | .name = "cpe_hndlr" |
1487 | }; | 1487 | }; |
1488 | 1488 | ||
1489 | static struct irqaction mca_cpep_irqaction = { | 1489 | static struct irqaction mca_cpep_irqaction = { |
1490 | .handler = ia64_mca_cpe_int_caller, | 1490 | .handler = ia64_mca_cpe_int_caller, |
1491 | .flags = SA_INTERRUPT, | 1491 | .flags = IRQF_DISABLED, |
1492 | .name = "cpe_poll" | 1492 | .name = "cpe_poll" |
1493 | }; | 1493 | }; |
1494 | #endif /* CONFIG_ACPI */ | 1494 | #endif /* CONFIG_ACPI */ |
diff --git a/arch/ia64/kernel/perfmon.c b/arch/ia64/kernel/perfmon.c index 92b815d13418..c7ccd6ee1ddf 100644 --- a/arch/ia64/kernel/perfmon.c +++ b/arch/ia64/kernel/perfmon.c | |||
@@ -6439,7 +6439,7 @@ pfm_flush_pmds(struct task_struct *task, pfm_context_t *ctx) | |||
6439 | 6439 | ||
6440 | static struct irqaction perfmon_irqaction = { | 6440 | static struct irqaction perfmon_irqaction = { |
6441 | .handler = pfm_interrupt_handler, | 6441 | .handler = pfm_interrupt_handler, |
6442 | .flags = SA_INTERRUPT, | 6442 | .flags = IRQF_DISABLED, |
6443 | .name = "perfmon" | 6443 | .name = "perfmon" |
6444 | }; | 6444 | }; |
6445 | 6445 | ||
diff --git a/arch/ia64/kernel/time.c b/arch/ia64/kernel/time.c index 71ccddabc715..6928ef0d64d8 100644 --- a/arch/ia64/kernel/time.c +++ b/arch/ia64/kernel/time.c | |||
@@ -231,7 +231,7 @@ ia64_init_itm (void) | |||
231 | 231 | ||
232 | static struct irqaction timer_irqaction = { | 232 | static struct irqaction timer_irqaction = { |
233 | .handler = timer_interrupt, | 233 | .handler = timer_interrupt, |
234 | .flags = SA_INTERRUPT, | 234 | .flags = IRQF_DISABLED, |
235 | .name = "timer" | 235 | .name = "timer" |
236 | }; | 236 | }; |
237 | 237 | ||
diff --git a/arch/ia64/sn/kernel/huberror.c b/arch/ia64/sn/kernel/huberror.c index 56ab6bae00ee..96fb81e6321f 100644 --- a/arch/ia64/sn/kernel/huberror.c +++ b/arch/ia64/sn/kernel/huberror.c | |||
@@ -178,7 +178,7 @@ void hubiio_crb_error_handler(struct hubdev_info *hubdev_info) | |||
178 | */ | 178 | */ |
179 | void hub_error_init(struct hubdev_info *hubdev_info) | 179 | void hub_error_init(struct hubdev_info *hubdev_info) |
180 | { | 180 | { |
181 | if (request_irq(SGI_II_ERROR, (void *)hub_eint_handler, SA_SHIRQ, | 181 | if (request_irq(SGI_II_ERROR, (void *)hub_eint_handler, IRQF_SHARED, |
182 | "SN_hub_error", (void *)hubdev_info)) | 182 | "SN_hub_error", (void *)hubdev_info)) |
183 | printk("hub_error_init: Failed to request_irq for 0x%p\n", | 183 | printk("hub_error_init: Failed to request_irq for 0x%p\n", |
184 | hubdev_info); | 184 | hubdev_info); |
@@ -196,7 +196,7 @@ void hub_error_init(struct hubdev_info *hubdev_info) | |||
196 | void ice_error_init(struct hubdev_info *hubdev_info) | 196 | void ice_error_init(struct hubdev_info *hubdev_info) |
197 | { | 197 | { |
198 | if (request_irq | 198 | if (request_irq |
199 | (SGI_TIO_ERROR, (void *)hub_eint_handler, SA_SHIRQ, "SN_TIO_error", | 199 | (SGI_TIO_ERROR, (void *)hub_eint_handler, IRQF_SHARED, "SN_TIO_error", |
200 | (void *)hubdev_info)) | 200 | (void *)hubdev_info)) |
201 | printk("ice_error_init: request_irq() error hubdev_info 0x%p\n", | 201 | printk("ice_error_init: request_irq() error hubdev_info 0x%p\n", |
202 | hubdev_info); | 202 | hubdev_info); |
diff --git a/arch/ia64/sn/kernel/xpc_channel.c b/arch/ia64/sn/kernel/xpc_channel.c index 8255a9be4632..c2f69f7942af 100644 --- a/arch/ia64/sn/kernel/xpc_channel.c +++ b/arch/ia64/sn/kernel/xpc_channel.c | |||
@@ -202,7 +202,7 @@ xpc_setup_infrastructure(struct xpc_partition *part) | |||
202 | init_waitqueue_head(&part->channel_mgr_wq); | 202 | init_waitqueue_head(&part->channel_mgr_wq); |
203 | 203 | ||
204 | sprintf(part->IPI_owner, "xpc%02d", partid); | 204 | sprintf(part->IPI_owner, "xpc%02d", partid); |
205 | ret = request_irq(SGI_XPC_NOTIFY, xpc_notify_IRQ_handler, SA_SHIRQ, | 205 | ret = request_irq(SGI_XPC_NOTIFY, xpc_notify_IRQ_handler, IRQF_SHARED, |
206 | part->IPI_owner, (void *) (u64) partid); | 206 | part->IPI_owner, (void *) (u64) partid); |
207 | if (ret != 0) { | 207 | if (ret != 0) { |
208 | dev_err(xpc_chan, "can't register NOTIFY IRQ handler, " | 208 | dev_err(xpc_chan, "can't register NOTIFY IRQ handler, " |
diff --git a/arch/ia64/sn/pci/pcibr/pcibr_provider.c b/arch/ia64/sn/pci/pcibr/pcibr_provider.c index ab1211ef0176..838c93c9a16a 100644 --- a/arch/ia64/sn/pci/pcibr/pcibr_provider.c +++ b/arch/ia64/sn/pci/pcibr/pcibr_provider.c | |||
@@ -139,7 +139,7 @@ pcibr_bus_fixup(struct pcibus_bussoft *prom_bussoft, struct pci_controller *cont | |||
139 | * register the bridge's error interrupt handler | 139 | * register the bridge's error interrupt handler |
140 | */ | 140 | */ |
141 | if (request_irq(SGI_PCIASIC_ERROR, (void *)pcibr_error_intr_handler, | 141 | if (request_irq(SGI_PCIASIC_ERROR, (void *)pcibr_error_intr_handler, |
142 | SA_SHIRQ, "PCIBR error", (void *)(soft))) { | 142 | IRQF_SHARED, "PCIBR error", (void *)(soft))) { |
143 | printk(KERN_WARNING | 143 | printk(KERN_WARNING |
144 | "pcibr cannot allocate interrupt for error handler\n"); | 144 | "pcibr cannot allocate interrupt for error handler\n"); |
145 | } | 145 | } |
diff --git a/arch/ia64/sn/pci/tioca_provider.c b/arch/ia64/sn/pci/tioca_provider.c index e4aa839d0189..c36b0f5affb3 100644 --- a/arch/ia64/sn/pci/tioca_provider.c +++ b/arch/ia64/sn/pci/tioca_provider.c | |||
@@ -646,7 +646,7 @@ tioca_bus_fixup(struct pcibus_bussoft *prom_bussoft, struct pci_controller *cont | |||
646 | 646 | ||
647 | if (request_irq(SGI_TIOCA_ERROR, | 647 | if (request_irq(SGI_TIOCA_ERROR, |
648 | tioca_error_intr_handler, | 648 | tioca_error_intr_handler, |
649 | SA_SHIRQ, "TIOCA error", (void *)tioca_common)) | 649 | IRQF_SHARED, "TIOCA error", (void *)tioca_common)) |
650 | printk(KERN_WARNING | 650 | printk(KERN_WARNING |
651 | "%s: Unable to get irq %d. " | 651 | "%s: Unable to get irq %d. " |
652 | "Error interrupts won't be routed for TIOCA bus %d\n", | 652 | "Error interrupts won't be routed for TIOCA bus %d\n", |
diff --git a/arch/ia64/sn/pci/tioce_provider.c b/arch/ia64/sn/pci/tioce_provider.c index 2d7948567ebc..17cd34284886 100644 --- a/arch/ia64/sn/pci/tioce_provider.c +++ b/arch/ia64/sn/pci/tioce_provider.c | |||
@@ -1027,7 +1027,7 @@ tioce_bus_fixup(struct pcibus_bussoft *prom_bussoft, struct pci_controller *cont | |||
1027 | 1027 | ||
1028 | if (request_irq(SGI_PCIASIC_ERROR, | 1028 | if (request_irq(SGI_PCIASIC_ERROR, |
1029 | tioce_error_intr_handler, | 1029 | tioce_error_intr_handler, |
1030 | SA_SHIRQ, "TIOCE error", (void *)tioce_common)) | 1030 | IRQF_SHARED, "TIOCE error", (void *)tioce_common)) |
1031 | printk(KERN_WARNING | 1031 | printk(KERN_WARNING |
1032 | "%s: Unable to get irq %d. " | 1032 | "%s: Unable to get irq %d. " |
1033 | "Error interrupts won't be routed for " | 1033 | "Error interrupts won't be routed for " |
diff --git a/include/asm-ia64/irq.h b/include/asm-ia64/irq.h index 79479e2c6966..8acb00190d5a 100644 --- a/include/asm-ia64/irq.h +++ b/include/asm-ia64/irq.h | |||
@@ -14,6 +14,8 @@ | |||
14 | #define NR_IRQS 256 | 14 | #define NR_IRQS 256 |
15 | #define NR_IRQ_VECTORS NR_IRQS | 15 | #define NR_IRQ_VECTORS NR_IRQS |
16 | 16 | ||
17 | #define IRQF_PERCPU 0x02000000 | ||
18 | |||
17 | static __inline__ int | 19 | static __inline__ int |
18 | irq_canonicalize (int irq) | 20 | irq_canonicalize (int irq) |
19 | { | 21 | { |
diff --git a/include/asm-ia64/signal.h b/include/asm-ia64/signal.h index 5e328ed5d01d..4f5ca5643cb1 100644 --- a/include/asm-ia64/signal.h +++ b/include/asm-ia64/signal.h | |||
@@ -56,7 +56,6 @@ | |||
56 | * SA_FLAGS values: | 56 | * SA_FLAGS values: |
57 | * | 57 | * |
58 | * SA_ONSTACK indicates that a registered stack_t will be used. | 58 | * SA_ONSTACK indicates that a registered stack_t will be used. |
59 | * SA_INTERRUPT is a no-op, but left due to historical reasons. | ||
60 | * SA_RESTART flag to get restarting signals (which were the default long ago) | 59 | * SA_RESTART flag to get restarting signals (which were the default long ago) |
61 | * SA_NOCLDSTOP flag to turn off SIGCHLD when children stop. | 60 | * SA_NOCLDSTOP flag to turn off SIGCHLD when children stop. |
62 | * SA_RESETHAND clears the handler when the signal is delivered. | 61 | * SA_RESETHAND clears the handler when the signal is delivered. |
@@ -76,7 +75,6 @@ | |||
76 | 75 | ||
77 | #define SA_NOMASK SA_NODEFER | 76 | #define SA_NOMASK SA_NODEFER |
78 | #define SA_ONESHOT SA_RESETHAND | 77 | #define SA_ONESHOT SA_RESETHAND |
79 | #define SA_INTERRUPT 0x20000000 /* dummy -- ignored */ | ||
80 | 78 | ||
81 | #define SA_RESTORER 0x04000000 | 79 | #define SA_RESTORER 0x04000000 |
82 | 80 | ||
@@ -114,8 +112,6 @@ | |||
114 | #define _NSIG_BPW 64 | 112 | #define _NSIG_BPW 64 |
115 | #define _NSIG_WORDS (_NSIG / _NSIG_BPW) | 113 | #define _NSIG_WORDS (_NSIG / _NSIG_BPW) |
116 | 114 | ||
117 | #define SA_PERCPU_IRQ 0x02000000 | ||
118 | |||
119 | #endif /* __KERNEL__ */ | 115 | #endif /* __KERNEL__ */ |
120 | 116 | ||
121 | #include <asm-generic/signal.h> | 117 | #include <asm-generic/signal.h> |