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

[PATCH] irq-flags: ARM26: 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>
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
af0f4d36 d18ecedc

+10 -12
+8 -8
arch/arm26/kernel/irq.c
··· 190 190 int ret; 191 191 192 192 spin_unlock(&irq_controller_lock); 193 - if (!(action->flags & SA_INTERRUPT)) 193 + if (!(action->flags & IRQF_DISABLED)) 194 194 local_irq_enable(); 195 195 196 196 status = 0; ··· 201 201 action = action->next; 202 202 } while (action); 203 203 204 - if (status & SA_SAMPLE_RANDOM) 204 + if (status & IRQF_SAMPLE_RANDOM) 205 205 add_interrupt_randomness(irq); 206 206 207 207 spin_lock_irq(&irq_controller_lock); ··· 451 451 * so we have to be careful not to interfere with a 452 452 * running system. 453 453 */ 454 - if (new->flags & SA_SAMPLE_RANDOM) { 454 + if (new->flags & IRQF_SAMPLE_RANDOM) { 455 455 /* 456 456 * This function might sleep, we want to call it first, 457 457 * outside of the atomic block. ··· 471 471 p = &desc->action; 472 472 if ((old = *p) != NULL) { 473 473 /* Can't share interrupts unless both agree to */ 474 - if (!(old->flags & new->flags & SA_SHIRQ)) { 474 + if (!(old->flags & new->flags & IRQF_SHARED)) { 475 475 spin_unlock_irqrestore(&irq_controller_lock, flags); 476 476 return -EBUSY; 477 477 } ··· 526 526 * 527 527 * Flags: 528 528 * 529 - * SA_SHIRQ Interrupt is shared 529 + * IRQF_SHARED Interrupt is shared 530 530 * 531 - * SA_INTERRUPT Disable local interrupts while processing 531 + * IRQF_DISABLED Disable local interrupts while processing 532 532 * 533 - * SA_SAMPLE_RANDOM The interrupt can be used for entropy 533 + * IRQF_SAMPLE_RANDOM The interrupt can be used for entropy 534 534 * 535 535 */ 536 536 ··· 542 542 struct irqaction *action; 543 543 544 544 if (irq >= NR_IRQS || !irq_desc[irq].valid || !handler || 545 - (irq_flags & SA_SHIRQ && !dev_id)) 545 + (irq_flags & IRQF_SHARED && !dev_id)) 546 546 return -EINVAL; 547 547 548 548 action = (struct irqaction *)kmalloc(sizeof(struct irqaction), GFP_KERNEL);
+1 -1
arch/arm26/kernel/time.c
··· 205 205 206 206 static struct irqaction timer_irq = { 207 207 .name = "timer", 208 - .flags = SA_INTERRUPT, 208 + .flags = IRQF_DISABLED, 209 209 .handler = timer_interrupt, 210 210 }; 211 211
+1 -1
include/asm-arm26/floppy.h
··· 22 22 23 23 #define fd_inb(port) inb((port)) 24 24 #define fd_request_irq() request_irq(IRQ_FLOPPYDISK,floppy_interrupt,\ 25 - SA_INTERRUPT,"floppy",NULL) 25 + IRQF_DISABLED,"floppy",NULL) 26 26 #define fd_free_irq() free_irq(IRQ_FLOPPYDISK,NULL) 27 27 #define fd_disable_irq() disable_irq(IRQ_FLOPPYDISK) 28 28 #define fd_enable_irq() enable_irq(IRQ_FLOPPYDISK)
-2
include/asm-arm26/signal.h
··· 82 82 * is running in 26-bit. 83 83 * SA_ONSTACK allows alternate signal stacks (see sigaltstack(2)). 84 84 * SA_RESTART flag to get restarting signals (which were the default long ago) 85 - * SA_INTERRUPT is a no-op, but left due to historical reasons. Use the 86 85 * SA_NODEFER prevents the current signal from being masked in the handler. 87 86 * SA_RESETHAND clears the handler when the signal is delivered. 88 87 * ··· 100 101 101 102 #define SA_NOMASK SA_NODEFER 102 103 #define SA_ONESHOT SA_RESETHAND 103 - #define SA_INTERRUPT 0x20000000 /* dummy -- ignored */ 104 104 105 105 106 106 /*