summaryrefslogtreecommitdiff
path: root/include/acpi
diff options
context:
space:
mode:
authorLv Zheng <lv.zheng@intel.com>2015-09-24 14:54:48 +0800
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-09-26 01:46:24 +0200
commit0700c047f66101c7d0d23e3583f1ae9c3c2dd71c (patch)
tree0527eadfd6dd06cae0c65fbb53cb5001648db3f0 /include/acpi
parent15b94fa32a422f4b97dc34e4b7060ec83d10bee5 (diff)
downloadlinux-next-0700c047f66101c7d0d23e3583f1ae9c3c2dd71c.tar.gz
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