提交 efb1cf7d 编写于 作者: C Chen Yu 提交者: Rafael J. Wysocki

ACPI: Using correct irq when waiting for events

When the system is waiting for GPE/fixed event handler to finish,
it uses acpi_gbl_FADT.sci_interrupt directly as the IRQ number.
However, the remapped IRQ returned by acpi_gsi_to_irq() should be
passed to synchronize_hardirq() instead of it.

Cc: 3.19+ <stable@vger.kernel.org> # 3.19+
Acked-by: NLv Zheng <lv.zheng@intel.com>
Signed-off-by: NChen Yu <yu.c.chen@intel.com>
Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
上级 49e4b843
...@@ -1183,8 +1183,8 @@ void acpi_os_wait_events_complete(void) ...@@ -1183,8 +1183,8 @@ void acpi_os_wait_events_complete(void)
* Make sure the GPE handler or the fixed event handler is not used * Make sure the GPE handler or the fixed event handler is not used
* on another CPU after removal. * on another CPU after removal.
*/ */
if (acpi_irq_handler) if (acpi_sci_irq_valid())
synchronize_hardirq(acpi_gbl_FADT.sci_interrupt); synchronize_hardirq(acpi_sci_irq);
flush_workqueue(kacpid_wq); flush_workqueue(kacpid_wq);
flush_workqueue(kacpi_notify_wq); flush_workqueue(kacpi_notify_wq);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册