diff options
author | Alex Waterman <alexw@nvidia.com> | 2017-02-21 21:01:12 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-04-03 16:20:55 -0400 |
commit | a94b4bcde9b88e856d4b6f2bcb9e0e23942a69cc (patch) | |
tree | 6a58bcf79e9a6d6277420b90888eca80d683b802 /drivers/gpu/nvgpu/include | |
parent | 6c58737bed4477f3e3199956b29b3948a465c14d (diff) |
gpu: nvgpu: Abstraction for *sleep, *delay
Add abstractions for the following:
msleep()
udelay()
usleep_range()
These functions are only a subset of the available Linux delay and sleep
functions but this seems to be what we use and what is actually useful
for driver development.
Bug 1799159
Jira NVGPU-16
Change-Id: I1a25b66314f365432f2f0a5ff1b3a0a5689fc047
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/1309087
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Seema Khowala <seemaj@nvidia.com>
Reviewed-by: David Martinez Nieto <dmartineznie@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/include')
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/timers.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/timers.h b/drivers/gpu/nvgpu/include/nvgpu/timers.h index abf8b736..0aadd0df 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/timers.h +++ b/drivers/gpu/nvgpu/include/nvgpu/timers.h | |||
@@ -89,4 +89,12 @@ int nvgpu_timeout_peek_expired(struct nvgpu_timeout *timeout); | |||
89 | int __nvgpu_timeout_expired_msg(struct nvgpu_timeout *timeout, | 89 | int __nvgpu_timeout_expired_msg(struct nvgpu_timeout *timeout, |
90 | void *caller, const char *fmt, ...); | 90 | void *caller, const char *fmt, ...); |
91 | 91 | ||
92 | |||
93 | /* | ||
94 | * Waits and delays. | ||
95 | */ | ||
96 | void nvgpu_msleep(unsigned int msecs); | ||
97 | void nvgpu_usleep_range(unsigned int min_us, unsigned int max_us); | ||
98 | void nvgpu_udelay(unsigned int usecs); | ||
99 | |||
92 | #endif | 100 | #endif |