OSDN Git Service

ACPI: EC: Rearrange code in acpi_ec_submit_event()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 4 Feb 2022 17:43:14 +0000 (18:43 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 14 Feb 2022 19:14:40 +0000 (20:14 +0100)
commit13a62d0e13308d62426c38223a3b6f78878f2173
treed4faf1d5cbb69169268ff5b10ca16c88d17527db
parent54b86141d71db2a16743cfa4a3417180d7feb24a
ACPI: EC: Rearrange code in acpi_ec_submit_event()

Rearange acpi_ec_event_handler() so as to avoid releasing ec->lock
and acquiring it again right away in the case when ec_event_clearing
is not ACPI_EC_EVT_TIMING_EVENT.

This also reduces the number of checks done by acpi_ec_event_handler()
in that case.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/ec.c