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 | |
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>
-rw-r--r-- | arch/frv/kernel/irq-routing.c | 4 | ||||
-rw-r--r-- | arch/frv/kernel/irq.c | 12 | ||||
-rw-r--r-- | arch/frv/kernel/time.c | 2 | ||||
-rw-r--r-- | include/asm-frv/irq-routing.h | 2 | ||||
-rw-r--r-- | include/asm-frv/signal.h | 2 |
5 files changed, 10 insertions, 12 deletions
diff --git a/arch/frv/kernel/irq-routing.c b/arch/frv/kernel/irq-routing.c index b90b70a761d1..53886adf47de 100644 --- a/arch/frv/kernel/irq-routing.c +++ b/arch/frv/kernel/irq-routing.c | |||
@@ -81,7 +81,7 @@ void distribute_irqs(struct irq_group *group, unsigned long irqmask) | |||
81 | if (action) { | 81 | if (action) { |
82 | int status = 0; | 82 | int status = 0; |
83 | 83 | ||
84 | // if (!(action->flags & SA_INTERRUPT)) | 84 | // if (!(action->flags & IRQF_DISABLED)) |
85 | // local_irq_enable(); | 85 | // local_irq_enable(); |
86 | 86 | ||
87 | do { | 87 | do { |
@@ -90,7 +90,7 @@ void distribute_irqs(struct irq_group *group, unsigned long irqmask) | |||
90 | action = action->next; | 90 | action = action->next; |
91 | } while (action); | 91 | } while (action); |
92 | 92 | ||
93 | if (status & SA_SAMPLE_RANDOM) | 93 | if (status & IRQF_SAMPLE_RANDOM) |
94 | add_interrupt_randomness(irq); | 94 | add_interrupt_randomness(irq); |
95 | local_irq_disable(); | 95 | local_irq_disable(); |
96 | } | 96 | } |
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 | } |
diff --git a/arch/frv/kernel/time.c b/arch/frv/kernel/time.c index 24cf85f89e40..d5b64e193d92 100644 --- a/arch/frv/kernel/time.c +++ b/arch/frv/kernel/time.c | |||
@@ -47,7 +47,7 @@ unsigned long __delay_loops_MHz; | |||
47 | static irqreturn_t timer_interrupt(int irq, void *dummy, struct pt_regs *regs); | 47 | static irqreturn_t timer_interrupt(int irq, void *dummy, struct pt_regs *regs); |
48 | 48 | ||
49 | static struct irqaction timer_irq = { | 49 | static struct irqaction timer_irq = { |
50 | timer_interrupt, SA_INTERRUPT, CPU_MASK_NONE, "timer", NULL, NULL | 50 | timer_interrupt, IRQF_DISABLED, CPU_MASK_NONE, "timer", NULL, NULL |
51 | }; | 51 | }; |
52 | 52 | ||
53 | static inline int set_rtc_mmss(unsigned long nowtime) | 53 | static inline int set_rtc_mmss(unsigned long nowtime) |
diff --git a/include/asm-frv/irq-routing.h b/include/asm-frv/irq-routing.h index 686fb2b39d6a..ac3ab900a1dc 100644 --- a/include/asm-frv/irq-routing.h +++ b/include/asm-frv/irq-routing.h | |||
@@ -51,7 +51,7 @@ struct irq_source { | |||
51 | struct irq_level { | 51 | struct irq_level { |
52 | int usage; | 52 | int usage; |
53 | int disable_count; | 53 | int disable_count; |
54 | unsigned long flags; /* current SA_INTERRUPT and SA_SHIRQ settings */ | 54 | unsigned long flags; /* current IRQF_DISABLED and IRQF_SHARED settings */ |
55 | spinlock_t lock; | 55 | spinlock_t lock; |
56 | struct irq_source *sources; | 56 | struct irq_source *sources; |
57 | }; | 57 | }; |
diff --git a/include/asm-frv/signal.h b/include/asm-frv/signal.h index dcc1b3592918..2079197d483d 100644 --- a/include/asm-frv/signal.h +++ b/include/asm-frv/signal.h | |||
@@ -74,7 +74,6 @@ typedef unsigned long sigset_t; | |||
74 | * SA_FLAGS values: | 74 | * SA_FLAGS values: |
75 | * | 75 | * |
76 | * SA_ONSTACK indicates that a registered stack_t will be used. | 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 | * SA_RESTART flag to get restarting signals (which were the default long ago) | 77 | * SA_RESTART flag to get restarting signals (which were the default long ago) |
79 | * SA_NOCLDSTOP flag to turn off SIGCHLD when children stop. | 78 | * SA_NOCLDSTOP flag to turn off SIGCHLD when children stop. |
80 | * SA_RESETHAND clears the handler when the signal is delivered. | 79 | * SA_RESETHAND clears the handler when the signal is delivered. |
@@ -94,7 +93,6 @@ typedef unsigned long sigset_t; | |||
94 | 93 | ||
95 | #define SA_NOMASK SA_NODEFER | 94 | #define SA_NOMASK SA_NODEFER |
96 | #define SA_ONESHOT SA_RESETHAND | 95 | #define SA_ONESHOT SA_RESETHAND |
97 | #define SA_INTERRUPT 0x20000000 /* dummy -- ignored */ | ||
98 | 96 | ||
99 | #define SA_RESTORER 0x04000000 | 97 | #define SA_RESTORER 0x04000000 |
100 | 98 | ||