Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] irq-flags: CRIS: 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: Mikael Starvik <starvik@axis.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Thomas Gleixner and committed by
Linus Torvalds
aa7135ff af0f4d36

+22 -20
+2 -2
arch/cris/arch-v10/drivers/gpio.c
··· 937 937 * in some tests. 938 938 */ 939 939 if (request_irq(TIMER0_IRQ_NBR, gpio_poll_timer_interrupt, 940 - SA_SHIRQ | SA_INTERRUPT,"gpio poll", NULL)) { 940 + IRQF_SHARED | IRQF_DISABLED,"gpio poll", NULL)) { 941 941 printk(KERN_CRIT "err: timer0 irq for gpio\n"); 942 942 } 943 943 if (request_irq(PA_IRQ_NBR, gpio_pa_interrupt, 944 - SA_SHIRQ | SA_INTERRUPT,"gpio PA", NULL)) { 944 + IRQF_SHARED | IRQF_DISABLED,"gpio PA", NULL)) { 945 945 printk(KERN_CRIT "err: PA irq for gpio\n"); 946 946 } 947 947
+3 -3
arch/cris/arch-v10/kernel/time.c
··· 251 251 return IRQ_HANDLED; 252 252 } 253 253 254 - /* timer is SA_SHIRQ so drivers can add stuff to the timer irq chain 255 - * it needs to be SA_INTERRUPT to make the jiffies update work properly 254 + /* timer is IRQF_SHARED so drivers can add stuff to the timer irq chain 255 + * it needs to be IRQF_DISABLED to make the jiffies update work properly 256 256 */ 257 257 258 - static struct irqaction irq2 = { timer_interrupt, SA_SHIRQ | SA_INTERRUPT, 258 + static struct irqaction irq2 = { timer_interrupt, IRQF_SHARED | IRQF_DISABLED, 259 259 CPU_MASK_NONE, "timer", NULL, NULL}; 260 260 261 261 void __init
+2 -2
arch/cris/arch-v32/drivers/gpio.c
··· 744 744 * in some tests. 745 745 */ 746 746 if (request_irq(TIMER_INTR_VECT, gpio_poll_timer_interrupt, 747 - SA_SHIRQ | SA_INTERRUPT,"gpio poll", &alarmlist)) { 747 + IRQF_SHARED | IRQF_DISABLED,"gpio poll", &alarmlist)) { 748 748 printk("err: timer0 irq for gpio\n"); 749 749 } 750 750 if (request_irq(GEN_IO_INTR_VECT, gpio_pa_interrupt, 751 - SA_SHIRQ | SA_INTERRUPT,"gpio PA", &alarmlist)) { 751 + IRQF_SHARED | IRQF_DISABLED,"gpio PA", &alarmlist)) { 752 752 printk("err: PA irq for gpio\n"); 753 753 } 754 754 /* enable the gio and timer irq in global config */
+1 -1
arch/cris/arch-v32/kernel/arbiter.c
··· 119 119 crisv32_arbiter_config(EXT_REGION); 120 120 crisv32_arbiter_config(INT_REGION); 121 121 122 - if (request_irq(MEMARB_INTR_VECT, crisv32_arbiter_irq, SA_INTERRUPT, 122 + if (request_irq(MEMARB_INTR_VECT, crisv32_arbiter_irq, IRQF_DISABLED, 123 123 "arbiter", NULL)) 124 124 printk(KERN_ERR "Couldn't allocate arbiter IRQ\n"); 125 125
+1 -1
arch/cris/arch-v32/kernel/fasttimer.c
··· 981 981 proc_register_dynamic(&proc_root, &fasttimer_proc_entry); 982 982 #endif 983 983 #endif /* PROC_FS */ 984 - if(request_irq(TIMER_INTR_VECT, timer_trig_interrupt, SA_INTERRUPT, 984 + if(request_irq(TIMER_INTR_VECT, timer_trig_interrupt, IRQF_DISABLED, 985 985 "fast timer int", NULL)) 986 986 { 987 987 printk("err: timer1 irq\n");
+1 -1
arch/cris/arch-v32/kernel/irq.c
··· 268 268 crisv32_do_IRQ(int irq, int block, struct pt_regs* regs) 269 269 { 270 270 /* Interrupts that may not be moved to another CPU and 271 - * are SA_INTERRUPT may skip blocking. This is currently 271 + * are IRQF_DISABLED may skip blocking. This is currently 272 272 * only valid for the timer IRQ and the IPI and is used 273 273 * for the timer interrupt to avoid watchdog starvation. 274 274 */
+1 -1
arch/cris/arch-v32/kernel/smp.c
··· 62 62 63 63 static irqreturn_t crisv32_ipi_interrupt(int irq, void *dev_id, struct pt_regs *regs); 64 64 static int send_ipi(int vector, int wait, cpumask_t cpu_mask); 65 - static struct irqaction irq_ipi = { crisv32_ipi_interrupt, SA_INTERRUPT, 65 + static struct irqaction irq_ipi = { crisv32_ipi_interrupt, IRQF_DISABLED, 66 66 CPU_MASK_NONE, "ipi", NULL, NULL}; 67 67 68 68 extern void cris_mmu_init(void);
+8 -4
arch/cris/arch-v32/kernel/time.c
··· 241 241 return IRQ_HANDLED; 242 242 } 243 243 244 - /* timer is SA_SHIRQ so drivers can add stuff to the timer irq chain 245 - * it needs to be SA_INTERRUPT to make the jiffies update work properly 244 + /* timer is IRQF_SHARED so drivers can add stuff to the timer irq chain 245 + * it needs to be IRQF_DISABLED to make the jiffies update work properly 246 246 */ 247 247 248 - static struct irqaction irq_timer = { timer_interrupt, SA_SHIRQ | SA_INTERRUPT, 249 - CPU_MASK_NONE, "timer", NULL, NULL}; 248 + static struct irqaction irq_timer = { 249 + .mask = timer_interrupt, 250 + .flags = IRQF_SHARED | IRQF_DISABLED, 251 + .mask = CPU_MASK_NONE, 252 + .name = "timer" 253 + }; 250 254 251 255 void __init 252 256 cris_timer_init(void)
+1 -1
arch/cris/kernel/irq.c
··· 85 85 /* called by the assembler IRQ entry functions defined in irq.h 86 86 * to dispatch the interrupts to registred handlers 87 87 * interrupts are disabled upon entry - depending on if the 88 - * interrupt was registred with SA_INTERRUPT or not, interrupts 88 + * interrupt was registred with IRQF_DISABLED or not, interrupts 89 89 * are re-enabled or not. 90 90 */ 91 91
+1 -1
include/asm-cris/arch-v10/irq.h
··· 141 141 * it here, we would not get the multiple_irq at all. 142 142 * 143 143 * The non-blocking here is based on the knowledge that the timer interrupt is 144 - * registred as a fast interrupt (SA_INTERRUPT) so that we _know_ there will not 144 + * registred as a fast interrupt (IRQF_DISABLED) so that we _know_ there will not 145 145 * be an sti() before the timer irq handler is run to acknowledge the interrupt. 146 146 */ 147 147
+1 -1
include/asm-cris/arch-v32/irq.h
··· 98 98 * if we had BLOCK'edit here, we would not get the multiple_irq at all. 99 99 * 100 100 * The non-blocking here is based on the knowledge that the timer interrupt is 101 - * registred as a fast interrupt (SA_INTERRUPT) so that we _know_ there will not 101 + * registred as a fast interrupt (IRQF_DISABLED) so that we _know_ there will not 102 102 * be an sti() before the timer irq handler is run to acknowledge the interrupt. 103 103 */ 104 104 #define BUILD_TIMER_IRQ(nr, mask) \
-2
include/asm-cris/signal.h
··· 74 74 * SA_FLAGS values: 75 75 * 76 76 * SA_ONSTACK indicates that a registered stack_t will be used. 77 - * SA_INTERRUPT is a no-op, but left due to historical reasons. Use the 78 77 * SA_RESTART flag to get restarting signals (which were the default long ago) 79 78 * SA_NOCLDSTOP flag to turn off SIGCHLD when children stop. 80 79 * SA_RESETHAND clears the handler when the signal is delivered. ··· 94 95 95 96 #define SA_NOMASK SA_NODEFER 96 97 #define SA_ONESHOT SA_RESETHAND 97 - #define SA_INTERRUPT 0x20000000 /* dummy -- ignored */ 98 98 99 99 #define SA_RESTORER 0x04000000 100 100