lkml.org 
[lkml]   [2012]   [Mar]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 43/76] ACPI: Make ACPI interrupt threaded
    Date
    From: Andi Kleen <andi@firstfloor.org>

    Some ACPI interrupt actions may need to wait, and it's easiest to
    have a thread context for this. So turn the ACPI interrupt
    into a threaded interrupt.

    Signed-off-by: Andi Kleen <ak@linux.intel.com>
    Signed-off-by: Len Brown <len.brown@intel.com>
    ---
    drivers/acpi/osl.c | 3 ++-
    1 file changed, 2 insertions(+), 1 deletion(-)

    diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c
    index 412a1e0..02367a8 100644
    --- a/drivers/acpi/osl.c
    +++ b/drivers/acpi/osl.c
    @@ -595,7 +595,8 @@ acpi_os_install_interrupt_handler(u32 gsi, acpi_osd_handler handler,

    acpi_irq_handler = handler;
    acpi_irq_context = context;
    - if (request_irq(irq, acpi_irq, IRQF_SHARED, "acpi", acpi_irq)) {
    + if (request_threaded_irq(irq, NULL, acpi_irq, IRQF_SHARED, "acpi",
    + acpi_irq)) {
    printk(KERN_ERR PREFIX "SCI (IRQ%d) allocation failed\n", irq);
    acpi_irq_handler = NULL;
    return AE_NOT_ACQUIRED;
    --
    1.7.10.rc2.19.gfae9d


    \
     
     \ /
      Last update: 2012-03-30 13:25    [W:0.021 / U:121.452 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site