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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Apr 2017 07:31:24 +0000 (09:31 +0200)
commit0dd962118a201a19d8c5c01e4909bfc07c288d6c
tree1ad030e09ee0f169d008bb1a73b11be3275a3a2c
parentc07479f4b10ac3faa5168881e7751681d59de7e7
ACPI / EC: Use busy polling mode when GPE is not enabled

commit c3a696b6e8f8f75f9f75e556a9f9f6472eae2655 upstream.

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>
Cc: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/acpi/ec.c
drivers/acpi/internal.h