diff options
author | Lv Zheng <lv.zheng@intel.com> | 2015-09-24 14:54:48 +0800 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2015-09-26 01:46:24 +0200 |
commit | 0700c047f66101c7d0d23e3583f1ae9c3c2dd71c (patch) | |
tree | 0527eadfd6dd06cae0c65fbb53cb5001648db3f0 /fs/openpromfs | |
parent | 15b94fa32a422f4b97dc34e4b7060ec83d10bee5 (diff) | |
download | linux-0700c047f66101c7d0d23e3583f1ae9c3c2dd71c.tar.bz2 |
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 'fs/openpromfs')
0 files changed, 0 insertions, 0 deletions