aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorAbhishek Pandit-Subedi <[email protected]>2020-05-12 19:19:26 -0700
committerMarcel Holtmann <[email protected]>2020-05-13 09:12:04 +0200
commit81dafad53c67abe4f09b0b04131fe490e76e5602 (patch)
tree9c5719ad16d518852ba5a318465280f73826d856 /tools/perf/scripts/python/syscall-counts.py
parent0d2c9825e46d45f8a520135c9c791b5c73a165ab (diff)
Bluetooth: Add hook for driver to prevent wake from suspend
Let drivers have a hook to disable configuring scanning during suspend. Drivers should use the device_may_wakeup function call to determine whether hci should be configured for wakeup. For example, an implementation for btusb may look like the following: bool btusb_prevent_wake(struct hci_dev *hdev) { struct btusb_data *data = hci_get_drvdata(hdev); return !device_may_wakeup(&data->udev->dev); } Signed-off-by: Abhishek Pandit-Subedi <[email protected]> Reviewed-by: Alain Michaud <[email protected]> Signed-off-by: Marcel Holtmann <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions