OSDN Git Service

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)
commitc3a696b6e8f8f75f9f75e556a9f9f6472eae2655
treefd6a1a2545ada67bb777a9663947e340212abb9a
parent4c237371f290d1ed3b2071dd43554362137b1cce
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