diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2006-07-01 22:29:15 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-07-02 16:58:46 -0400 |
commit | bc2e2635bd814dc893e45e866774883a0a66cd36 (patch) | |
tree | e9870d5b9d16a73fd1fea22fdc3c386a90631346 /arch/frv/kernel/irq.c | |
parent | aa7135ff33bf697196f2a3104d93837096c63ff0 (diff) |
[PATCH] irq-flags: FRV: 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: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/frv/kernel/irq.c')
-rw-r--r-- | arch/frv/kernel/irq.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/frv/kernel/irq.c b/arch/frv/kernel/irq.c index 5920f52bf9c8..08967010be04 100644 --- a/arch/frv/kernel/irq.c +++ b/arch/frv/kernel/irq.c | |||
@@ -341,11 +341,11 @@ asmlinkage void do_NMI(void) | |||
341 | * | 341 | * |
342 | * Flags: | 342 | * Flags: |
343 | * | 343 | * |
344 | * SA_SHIRQ Interrupt is shared | 344 | * IRQF_SHARED Interrupt is shared |
345 | * | 345 | * |
346 | * SA_INTERRUPT Disable local interrupts while processing | 346 | * IRQF_DISABLED Disable local interrupts while processing |
347 | * | 347 | * |
348 | * SA_SAMPLE_RANDOM The interrupt can be used for entropy | 348 | * IRQF_SAMPLE_RANDOM The interrupt can be used for entropy |
349 | * | 349 | * |
350 | */ | 350 | */ |
351 | 351 | ||
@@ -365,7 +365,7 @@ int request_irq(unsigned int irq, | |||
365 | * to figure out which interrupt is which (messes up the | 365 | * to figure out which interrupt is which (messes up the |
366 | * interrupt freeing logic etc). | 366 | * interrupt freeing logic etc). |
367 | */ | 367 | */ |
368 | if (irqflags & SA_SHIRQ) { | 368 | if (irqflags & IRQF_SHARED) { |
369 | if (!dev_id) | 369 | if (!dev_id) |
370 | printk("Bad boy: %s (at 0x%x) called us without a dev_id!\n", | 370 | printk("Bad boy: %s (at 0x%x) called us without a dev_id!\n", |
371 | devname, (&irq)[-1]); | 371 | devname, (&irq)[-1]); |
@@ -576,7 +576,7 @@ int setup_irq(unsigned int irq, struct irqaction *new) | |||
576 | * so we have to be careful not to interfere with a | 576 | * so we have to be careful not to interfere with a |
577 | * running system. | 577 | * running system. |
578 | */ | 578 | */ |
579 | if (new->flags & SA_SAMPLE_RANDOM) { | 579 | if (new->flags & IRQF_SAMPLE_RANDOM) { |
580 | /* | 580 | /* |
581 | * This function might sleep, we want to call it first, | 581 | * This function might sleep, we want to call it first, |
582 | * outside of the atomic block. | 582 | * outside of the atomic block. |
@@ -592,7 +592,7 @@ int setup_irq(unsigned int irq, struct irqaction *new) | |||
592 | spin_lock_irqsave(&level->lock, flags); | 592 | spin_lock_irqsave(&level->lock, flags); |
593 | 593 | ||
594 | /* can't share interrupts unless all parties agree to */ | 594 | /* can't share interrupts unless all parties agree to */ |
595 | if (level->usage != 0 && !(level->flags & new->flags & SA_SHIRQ)) { | 595 | if (level->usage != 0 && !(level->flags & new->flags & IRQF_SHARED)) { |
596 | spin_unlock_irqrestore(&level->lock,flags); | 596 | spin_unlock_irqrestore(&level->lock,flags); |
597 | return -EBUSY; | 597 | return -EBUSY; |
598 | } | 598 | } |