diff options
| author | Johan Hedberg <[email protected]> | 2015-11-25 16:15:44 +0200 |
|---|---|---|
| committer | Marcel Holtmann <[email protected]> | 2015-12-10 00:51:49 +0100 |
| commit | 2ff13894cfb877cb3d02d96a8402202f0a6f3efd (patch) | |
| tree | feb1092db11f30427f75af9694909fbdf6178c9a /tools/perf/scripts/python/check-perf-trace.py | |
| parent | bf943cbf76ecd3b9838a80d5e08777b0f4ccc665 (diff) | |
Bluetooth: Perform HCI update for power on synchronously
The request to update HCI during power on is always coming either from
hdev->req_workqueue or through an ioctl, so it's safe to use
hci_req_sync for it. This way we also eliminate potential races with
incoming mgmt commands or other actions while powering on.
Part of this refactoring is the splitting of mgmt_powered() into
mgmt_power_on() and __mgmt_power_off() functions. The main reason is
the different requirements as far as hdev locking is concerned, as
highlighted with the __ prefix of the power off API.
Since the power on in the case of clearing the AUTO_OFF flag cannot be
done synchronously in the set_powered mgmt handler, the hci_power_on
work callback is extended to cover this (which also simplifies the
set_powered helper a lot).
Signed-off-by: Johan Hedberg <[email protected]>
Signed-off-by: Marcel Holtmann <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions