Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1255233

[PATCH 2/3][v2] ACPI: Using correct irq when waiting for events

From Chen Yu <yu.c.chen@intel.com>
Newsgroups linux.kernel
Subject [PATCH 2/3][v2] ACPI: Using correct irq when waiting for events
Date 2015-10-24 19:10 +0200
Message-ID <qnaul-6Cu-5@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


When system is waiting for GPE/fixed event handler to finish,
it uses the acpi_gbl_FADT.sci_interrupt directly. However, we
should use mapped irq returned by acpi_gsi_to_irq for synchronize_hardirq.

Cc: <stable@vger.kernel.org> # 3.19+
Acked-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Chen Yu <yu.c.chen@intel.com>
---
 drivers/acpi/osl.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c
index 64df9d4..45243a7 100644
--- a/drivers/acpi/osl.c
+++ b/drivers/acpi/osl.c
@@ -1184,8 +1184,8 @@ void acpi_os_wait_events_complete(void)
 	 * Make sure the GPE handler or the fixed event handler is not used
 	 * on another CPU after removal.
 	 */
-	if (acpi_irq_handler)
-		synchronize_hardirq(acpi_gbl_FADT.sci_interrupt);
+	if (acpi_sci_irq_valid())
+		synchronize_hardirq(acpi_sci_irq);
 	flush_workqueue(kacpid_wq);
 	flush_workqueue(kacpi_notify_wq);
 }
-- 
1.8.4.2

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH 2/3][v2] ACPI: Using correct irq when waiting for events Chen Yu <yu.c.chen@intel.com> - 2015-10-24 19:10 +0200
  Re: [PATCH 2/3][v2] ACPI: Using correct irq when waiting for events kbuild test robot <lkp@intel.com> - 2015-10-24 19:30 +0200
    RE: [PATCH 2/3][v2] ACPI: Using correct irq when waiting for events "Chen, Yu C" <yu.c.chen@intel.com> - 2015-10-25 03:10 +0100
      Re: [PATCH 2/3][v2] ACPI: Using correct irq when waiting for events Fengguang Wu <fengguang.wu@intel.com> - 2015-10-26 02:30 +0100
        RE: [PATCH 2/3][v2] ACPI: Using correct irq when waiting for events "Chen, Yu C" <yu.c.chen@intel.com> - 2015-10-26 02:40 +0100
          Re: [PATCH 2/3][v2] ACPI: Using correct irq when waiting for events Fengguang Wu <fengguang.wu@intel.com> - 2015-10-26 03:00 +0100

csiph-web