diff options
author | Lv Zheng | 2015-09-24 08:54:48 +0200 |
---|---|---|
committer | Rafael J. Wysocki | 2015-09-26 01:46:24 +0200 |
commit | 0700c047f66101c7d0d23e3583f1ae9c3c2dd71c (patch) | |
tree | 0527eadfd6dd06cae0c65fbb53cb5001648db3f0 /include/acpi | |
parent | ACPI / EC: Fix a memory leak issue in acpi_ec_query() (diff) | |
download | kernel-qcow2-linux-0700c047f66101c7d0d23e3583f1ae9c3c2dd71c.tar.gz kernel-qcow2-linux-0700c047f66101c7d0d23e3583f1ae9c3c2dd71c.tar.xz kernel-qcow2-linux-0700c047f66101c7d0d23e3583f1ae9c3c2dd71c.zip |
ACPI / EC: Fix query handler related issues
1. acpi_ec_remove_query_handlers()
This patch refines the query handler removal logic implemented in
acpi_ec_remove_query_handler(), making it to invoke new
acpi_ec_remove_query_handlers() API, and ensuring all other removal code
paths to invoke the new API to honor the reference count of the query
handlers.
2. acpi_ec_get_query_handler_by_value()
This patch also refines the query handler search logic originally
implemented in acpi_ec_query(), collecting it into
acpi_ec_get_query_handler_by_value(). And since schedule_work() can ensure
the serilization of acpi_ec_event_handler(), we needn't put the
mutex_lock() around schedule_work().
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/acpi')
0 files changed, 0 insertions, 0 deletions