linux/drivers/android
Sajid Dalvi bce9e7942a ANDROID: PCI/PM: Use usleep_range for d3hot_delay
This patch implements a vendor hook that changes d3hot_delay to use
usleep_range() instead of msleep() to reduce the resume time from 20ms to 10ms.

The call sequence is as follows:
pci_pm_resume_noirq()
pci_pm_default_resume_early()
pci_power_up()
pci_raw_set_power_state() --> msleep(10)

The default d3hot_delay is 10ms. Using msleep for delays less than 20ms could
result in delays up to 20ms.
Reference: Documentation/timers/timers-howto.rst

Using usleep_range() results in the delay being closer to 10ms and this reduces
the resume time.

Bug: 194231641
Change-Id: If3e4dcfb99edad302371273933fa6784854cf892
Signed-off-by: Sajid Dalvi <sdalvi@google.com>
2021-08-04 19:48:57 -05:00
..
binder_alloc_selftest.c binder: print warnings when detecting oneway spamming. 2020-09-03 18:24:41 +02:00
binder_alloc.c UPSTREAM: binder: tell userspace to dump current backtrace when detected oneway spamming 2021-05-07 07:13:22 -07:00
binder_alloc.h UPSTREAM: binder: tell userspace to dump current backtrace when detected oneway spamming 2021-05-07 07:13:22 -07:00
binder_internal.h ANDROID: Add oem data array for async binder transaction 2021-07-01 22:32:03 -07:00
binder_trace.h Linux 5.2-rc4 2019-06-09 09:18:13 +02:00
binder.c ANDROID: binder: retry security_secid_to_secctx() 2021-07-20 17:48:29 +00:00
binderfs.c binderfs: make symbol 'binderfs_fs_parameters' static 2020-09-03 18:24:39 +02:00
debug_symbols.c ANDROID: android: Add symbols to debug_symbols driver 2021-07-14 20:52:01 -07:00
Kconfig ANDROID: android: Create debug_symbols driver 2021-01-27 15:23:18 -08:00
Makefile ANDROID: android: Create debug_symbols driver 2021-01-27 15:23:18 -08:00
vendor_hooks.c ANDROID: PCI/PM: Use usleep_range for d3hot_delay 2021-08-04 19:48:57 -05:00