]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI / EC: Use busy polling mode when GPE is not enabled
authorLv Zheng <lv.zheng@intel.com>
Fri, 20 Jan 2017 08:42:48 +0000 (16:42 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 30 Jan 2017 11:12:52 +0000 (12:12 +0100)
commite41c41d0b496b944380dbfa589c3ae7bfe145d7c
treefd6a1a2545ada67bb777a9663947e340212abb9a
parent16efa9314f042de4613a51f83aa01484190d15d5
ACPI / EC: Use busy polling mode when GPE is not enabled

When GPE is not enabled, it is not efficient to use the wait polling mode
as it introduces an unexpected scheduler delay.
So before the GPE handler is installed, this patch uses busy polling mode
for all EC(s) and the logic can be applied to non boot EC(s) during the
suspend/resume process.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=191561
Tested-by: Jakobus Schurz <jakobus.schurz@gmail.com>
Tested-by: Chen Yu <yu.c.chen@intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/ec.c
drivers/acpi/internal.h