diff options
author | Richard Weinberger <richard@nod.at> | 2010-10-26 17:22:20 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-26 19:52:12 -0400 |
commit | be76d81f99c4c120adcd201a7316e4dd7dbe3c11 (patch) | |
tree | 4fc31e0f2dcf1ba08f0c59980de8580654ed484c /arch/um/kernel | |
parent | aa5fb4dbfd121296ca97c68cf90043a7ea97579d (diff) |
um: migrate from __do_IRQ() to generic_handle_irq()
This patch removes __do_IRQ() from user mode linux. __do_IRQ is deprecated.
Signed-off-by: Richard Weinberger <richard@nod.at>
Cc: Jeff Dike <jdike@addtoit.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/um/kernel')
-rw-r--r-- | arch/um/kernel/irq.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/arch/um/kernel/irq.c b/arch/um/kernel/irq.c index a746e3037a5..3f0ac9e0c96 100644 --- a/arch/um/kernel/irq.c +++ b/arch/um/kernel/irq.c | |||
@@ -334,7 +334,7 @@ unsigned int do_IRQ(int irq, struct uml_pt_regs *regs) | |||
334 | { | 334 | { |
335 | struct pt_regs *old_regs = set_irq_regs((struct pt_regs *)regs); | 335 | struct pt_regs *old_regs = set_irq_regs((struct pt_regs *)regs); |
336 | irq_enter(); | 336 | irq_enter(); |
337 | __do_IRQ(irq); | 337 | generic_handle_irq(irq); |
338 | irq_exit(); | 338 | irq_exit(); |
339 | set_irq_regs(old_regs); | 339 | set_irq_regs(old_regs); |
340 | return 1; | 340 | return 1; |
@@ -391,17 +391,10 @@ void __init init_IRQ(void) | |||
391 | { | 391 | { |
392 | int i; | 392 | int i; |
393 | 393 | ||
394 | irq_desc[TIMER_IRQ].status = IRQ_DISABLED; | 394 | set_irq_chip_and_handler(TIMER_IRQ, &SIGVTALRM_irq_type, handle_edge_irq); |
395 | irq_desc[TIMER_IRQ].action = NULL; | 395 | |
396 | irq_desc[TIMER_IRQ].depth = 1; | ||
397 | irq_desc[TIMER_IRQ].chip = &SIGVTALRM_irq_type; | ||
398 | enable_irq(TIMER_IRQ); | ||
399 | for (i = 1; i < NR_IRQS; i++) { | 396 | for (i = 1; i < NR_IRQS; i++) { |
400 | irq_desc[i].status = IRQ_DISABLED; | 397 | set_irq_chip_and_handler(i, &normal_irq_type, handle_edge_irq); |
401 | irq_desc[i].action = NULL; | ||
402 | irq_desc[i].depth = 1; | ||
403 | irq_desc[i].chip = &normal_irq_type; | ||
404 | enable_irq(i); | ||
405 | } | 398 | } |
406 | } | 399 | } |
407 | 400 | ||