diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-06 16:25:43 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-06 16:25:43 -0400 |
commit | 17879857821adad4e180c5d6457c3b8bbf1d0c0c (patch) | |
tree | 28afa4b59847ca13b8d51a83fa04954916387de9 | |
parent | b62ad9ab181a67207a4c8c373461b587c4861a68 (diff) | |
parent | 4877c737283813bdb4bebfa3168c1585f6e3a8ca (diff) |
Merge branch 'irq-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'irq-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
xen: Do not suspend IPI IRQs.
powerpc: Use IRQF_NO_SUSPEND not IRQF_TIMER for non-timer interrupts
ixp4xx-beeper: Use IRQF_NO_SUSPEND not IRQF_TIMER for non-timer interrupt
irq: Add new IRQ flag IRQF_NO_SUSPEND
-rw-r--r-- | arch/powerpc/platforms/powermac/low_i2c.c | 5 | ||||
-rw-r--r-- | drivers/input/misc/ixp4xx-beeper.c | 3 | ||||
-rw-r--r-- | drivers/macintosh/via-pmu.c | 9 | ||||
-rw-r--r-- | drivers/xen/events.c | 1 | ||||
-rw-r--r-- | include/linux/interrupt.h | 7 | ||||
-rw-r--r-- | kernel/irq/manage.c | 2 |
6 files changed, 18 insertions, 9 deletions
diff --git a/arch/powerpc/platforms/powermac/low_i2c.c b/arch/powerpc/platforms/powermac/low_i2c.c index 06a137c5b8bb..480567e5fa9a 100644 --- a/arch/powerpc/platforms/powermac/low_i2c.c +++ b/arch/powerpc/platforms/powermac/low_i2c.c | |||
@@ -542,11 +542,12 @@ static struct pmac_i2c_host_kw *__init kw_i2c_host_init(struct device_node *np) | |||
542 | /* Make sure IRQ is disabled */ | 542 | /* Make sure IRQ is disabled */ |
543 | kw_write_reg(reg_ier, 0); | 543 | kw_write_reg(reg_ier, 0); |
544 | 544 | ||
545 | /* Request chip interrupt. We set IRQF_TIMER because we don't | 545 | /* Request chip interrupt. We set IRQF_NO_SUSPEND because we don't |
546 | * want that interrupt disabled between the 2 passes of driver | 546 | * want that interrupt disabled between the 2 passes of driver |
547 | * suspend or we'll have issues running the pfuncs | 547 | * suspend or we'll have issues running the pfuncs |
548 | */ | 548 | */ |
549 | if (request_irq(host->irq, kw_i2c_irq, IRQF_TIMER, "keywest i2c", host)) | 549 | if (request_irq(host->irq, kw_i2c_irq, IRQF_NO_SUSPEND, |
550 | "keywest i2c", host)) | ||
550 | host->irq = NO_IRQ; | 551 | host->irq = NO_IRQ; |
551 | 552 | ||
552 | printk(KERN_INFO "KeyWest i2c @0x%08x irq %d %s\n", | 553 | printk(KERN_INFO "KeyWest i2c @0x%08x irq %d %s\n", |
diff --git a/drivers/input/misc/ixp4xx-beeper.c b/drivers/input/misc/ixp4xx-beeper.c index 9946d73624b9..9dfd6e5f786f 100644 --- a/drivers/input/misc/ixp4xx-beeper.c +++ b/drivers/input/misc/ixp4xx-beeper.c | |||
@@ -115,7 +115,8 @@ static int __devinit ixp4xx_spkr_probe(struct platform_device *dev) | |||
115 | input_dev->event = ixp4xx_spkr_event; | 115 | input_dev->event = ixp4xx_spkr_event; |
116 | 116 | ||
117 | err = request_irq(IRQ_IXP4XX_TIMER2, &ixp4xx_spkr_interrupt, | 117 | err = request_irq(IRQ_IXP4XX_TIMER2, &ixp4xx_spkr_interrupt, |
118 | IRQF_DISABLED | IRQF_TIMER, "ixp4xx-beeper", (void *) dev->id); | 118 | IRQF_DISABLED | IRQF_NO_SUSPEND, "ixp4xx-beeper", |
119 | (void *) dev->id); | ||
119 | if (err) | 120 | if (err) |
120 | goto err_free_device; | 121 | goto err_free_device; |
121 | 122 | ||
diff --git a/drivers/macintosh/via-pmu.c b/drivers/macintosh/via-pmu.c index 3d4fc0f7b00b..35bc2737412f 100644 --- a/drivers/macintosh/via-pmu.c +++ b/drivers/macintosh/via-pmu.c | |||
@@ -400,11 +400,12 @@ static int __init via_pmu_start(void) | |||
400 | printk(KERN_ERR "via-pmu: can't map interrupt\n"); | 400 | printk(KERN_ERR "via-pmu: can't map interrupt\n"); |
401 | return -ENODEV; | 401 | return -ENODEV; |
402 | } | 402 | } |
403 | /* We set IRQF_TIMER because we don't want the interrupt to be disabled | 403 | /* We set IRQF_NO_SUSPEND because we don't want the interrupt |
404 | * between the 2 passes of driver suspend, we control our own disabling | 404 | * to be disabled between the 2 passes of driver suspend, we |
405 | * for that one | 405 | * control our own disabling for that one |
406 | */ | 406 | */ |
407 | if (request_irq(irq, via_pmu_interrupt, IRQF_TIMER, "VIA-PMU", (void *)0)) { | 407 | if (request_irq(irq, via_pmu_interrupt, IRQF_NO_SUSPEND, |
408 | "VIA-PMU", (void *)0)) { | ||
408 | printk(KERN_ERR "via-pmu: can't request irq %d\n", irq); | 409 | printk(KERN_ERR "via-pmu: can't request irq %d\n", irq); |
409 | return -ENODEV; | 410 | return -ENODEV; |
410 | } | 411 | } |
diff --git a/drivers/xen/events.c b/drivers/xen/events.c index 5e1f34892dcc..72f91bff29c7 100644 --- a/drivers/xen/events.c +++ b/drivers/xen/events.c | |||
@@ -550,6 +550,7 @@ int bind_ipi_to_irqhandler(enum ipi_vector ipi, | |||
550 | if (irq < 0) | 550 | if (irq < 0) |
551 | return irq; | 551 | return irq; |
552 | 552 | ||
553 | irqflags |= IRQF_NO_SUSPEND; | ||
553 | retval = request_irq(irq, handler, irqflags, devname, dev_id); | 554 | retval = request_irq(irq, handler, irqflags, devname, dev_id); |
554 | if (retval != 0) { | 555 | if (retval != 0) { |
555 | unbind_from_irq(irq); | 556 | unbind_from_irq(irq); |
diff --git a/include/linux/interrupt.h b/include/linux/interrupt.h index c2331138ca1b..a0384a4d1e6f 100644 --- a/include/linux/interrupt.h +++ b/include/linux/interrupt.h | |||
@@ -53,16 +53,21 @@ | |||
53 | * IRQF_ONESHOT - Interrupt is not reenabled after the hardirq handler finished. | 53 | * IRQF_ONESHOT - Interrupt is not reenabled after the hardirq handler finished. |
54 | * Used by threaded interrupts which need to keep the | 54 | * Used by threaded interrupts which need to keep the |
55 | * irq line disabled until the threaded handler has been run. | 55 | * irq line disabled until the threaded handler has been run. |
56 | * IRQF_NO_SUSPEND - Do not disable this IRQ during suspend | ||
57 | * | ||
56 | */ | 58 | */ |
57 | #define IRQF_DISABLED 0x00000020 | 59 | #define IRQF_DISABLED 0x00000020 |
58 | #define IRQF_SAMPLE_RANDOM 0x00000040 | 60 | #define IRQF_SAMPLE_RANDOM 0x00000040 |
59 | #define IRQF_SHARED 0x00000080 | 61 | #define IRQF_SHARED 0x00000080 |
60 | #define IRQF_PROBE_SHARED 0x00000100 | 62 | #define IRQF_PROBE_SHARED 0x00000100 |
61 | #define IRQF_TIMER 0x00000200 | 63 | #define __IRQF_TIMER 0x00000200 |
62 | #define IRQF_PERCPU 0x00000400 | 64 | #define IRQF_PERCPU 0x00000400 |
63 | #define IRQF_NOBALANCING 0x00000800 | 65 | #define IRQF_NOBALANCING 0x00000800 |
64 | #define IRQF_IRQPOLL 0x00001000 | 66 | #define IRQF_IRQPOLL 0x00001000 |
65 | #define IRQF_ONESHOT 0x00002000 | 67 | #define IRQF_ONESHOT 0x00002000 |
68 | #define IRQF_NO_SUSPEND 0x00004000 | ||
69 | |||
70 | #define IRQF_TIMER (__IRQF_TIMER | IRQF_NO_SUSPEND) | ||
66 | 71 | ||
67 | /* | 72 | /* |
68 | * Bits used by threaded handlers: | 73 | * Bits used by threaded handlers: |
diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c index e1497481fe8a..c3003e9d91a3 100644 --- a/kernel/irq/manage.c +++ b/kernel/irq/manage.c | |||
@@ -216,7 +216,7 @@ static inline int setup_affinity(unsigned int irq, struct irq_desc *desc) | |||
216 | void __disable_irq(struct irq_desc *desc, unsigned int irq, bool suspend) | 216 | void __disable_irq(struct irq_desc *desc, unsigned int irq, bool suspend) |
217 | { | 217 | { |
218 | if (suspend) { | 218 | if (suspend) { |
219 | if (!desc->action || (desc->action->flags & IRQF_TIMER)) | 219 | if (!desc->action || (desc->action->flags & IRQF_NO_SUSPEND)) |
220 | return; | 220 | return; |
221 | desc->status |= IRQ_SUSPENDED; | 221 | desc->status |= IRQ_SUSPENDED; |
222 | } | 222 | } |