linux/include/trace/hooks
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
..
avc.h
binder.h ANDROID: vendor_hooks: Modify the function name 2021-07-15 16:50:42 +00:00
block.h ANDROID: vendor_hooks: add vendor hook in blk_mq_rq_ctx_init() 2021-07-14 14:17:35 +00:00
bug.h
cgroup.h ANDROID: freezer: Add vendor hook to freezer for GKI purpose. 2021-06-07 16:07:44 +00:00
cpu.h
cpufreq.h ANDROID: sched: add restricted hook to override show_cpufinfo_max_freq 2021-07-26 20:51:32 +00:00
cpuidle_psci.h ANDROID: cpuidle-psci: Add vendor hook for cpuidle psci enter and exit 2021-06-10 22:06:51 +00:00
cpuidle.h
creds.h
debug.h
dtask.h
epoch.h
fault.h
fips140.h ANDROID: crypto: lib/aes - add vendor hooks for AES library routines 2021-06-11 07:49:57 +00:00
fpsimd.h
fs.h
ftrace_dump.h
futex.h
gic_v3.h ANDROID: gic-v3: Change GIC v3 vendor hook to restricted 2021-05-21 13:17:07 -07:00
gic.h ANDROID: gic: change gic resume vendor hook para 2021-06-17 14:39:37 -07:00
gpiolib.h
hung_task.h ANDROID: hung_task: Add vendor hook for hung task detect 2021-05-20 14:50:25 -07:00
i2c.h
iommu.h ANDROID: iommu: Add vendor hook for iova allocation and free tracking 2021-05-20 16:47:46 +00:00
ipv4.h ANDROID: vendor_hooks: Add hooks to tcp/udp send/recv msg functions. 2021-07-28 09:53:04 +08:00
ipv6.h ANDROID: ipv6: add vendor hook for gen ipv6 link-local addr 2021-07-13 18:13:57 +00:00
logbuf.h ANDROID: logbuf: Remove if directive for vendor hooks 2021-06-30 08:55:48 +00:00
memory.h
mm.h ANDROID: vendor_hooks: add hooks in mem_cgroup subsystem 2021-07-09 17:10:05 +00:00
mmc_core.h ANDROID: mmc: Add vendor hooks 2021-05-21 13:17:07 -07:00
module.h
mpam.h
net.h ANDROID: GKI: net: add vendor hooks for 'struct sock' lifecycle 2021-07-14 20:52:04 -07:00
pci.h ANDROID: PCI/PM: Use usleep_range for d3hot_delay 2021-08-04 19:48:57 -05:00
pm_domain.h
power.h ANDROID: power: Add vendor hook to qos for GKI purpose. 2021-06-23 14:36:23 +00:00
preemptirq.h
printk.h
psi.h
remoteproc.h ANDROID: rproc: Add vendor hook for recovery 2021-07-01 22:32:04 -07:00
rwsem.h
sched.h ANDROID: sched: remove regular vendor hooks for 32bit execve 2021-07-01 22:32:03 -07:00
scmi.h ANDROID: arm scmi: add vendor hook to adjust the rx timeout. 2021-06-04 21:59:37 +00:00
selinux.h
shmem_fs.h ANDROID: shmem: vendor hook in shmem_alloc_page 2021-07-08 22:06:18 +00:00
signal.h ANDROID: signal: Add vendor hook for memory reaping 2021-06-03 20:59:15 +00:00
snd_compr.h ANDROID: ALSA: compress: add vendor hook to support pause in draining 2021-07-14 17:10:01 +00:00
softlockup.h
sound.h ANDROID: sound: usb: add vendor hook for cpu suspend support 2021-07-14 04:05:24 +00:00
sys.h
syscall_check.h ANDROID: syscall_check: add vendor hook for bpf syscall 2021-07-09 13:48:53 +00:00
sysrqcrash.h
thermal.h
timer.h
topology.h
traps.h
typec.h ANDROID: vendor_hooks: Add vendor hook for tcpm logs 2021-06-02 18:21:32 +00:00
ufshcd.h ANDROID: scsi: ufs: add vendor hook to override key reprogramming 2021-07-28 15:32:51 +00:00
usb.h ANDROID: usb: Add vendor hook for usb suspend and resume 2021-07-12 09:06:49 +00:00
user.h ANDROID: user: Add vendor hook to user for GKI purpose 2021-06-10 01:35:22 +00:00
v4l2core.h ANDROID: media: v4l2-core: Fix deadlock in vendor hook 2021-07-21 13:05:27 +00:00
v4l2mc.h ANDROID: media: v4l2-core: Fix deadlock in vendor hook 2021-07-21 13:05:27 +00:00
vendor_hooks.h
vmscan.h ANDROID: mm: vmscan: support equal reclaim for anon and file pages 2021-06-09 02:02:44 +00:00
workqueue.h
wqlockup.h