diff options
author | Sourab Gupta <sourabg@nvidia.com> | 2017-12-20 04:35:37 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-01-08 11:45:26 -0500 |
commit | 72cf44ac8720e886847138361e745b77010e7ad3 (patch) | |
tree | d7f8fc1e51a47d3de412bbebe65a31c8aa46c06c /drivers/gpu/nvgpu/gv11b | |
parent | cc94cb3b2b91fd05dd64b0edd474c308b25b3d6c (diff) |
gpu: nvgpu: replace usleep_range with nvgpu_usleep_range
The patch replaces the linux specific usleep_range usage
with nvgpu_usleep_range OS agnostic function, in fifo_gv11b.c
Change-Id: I8ada3ffc1b70caa571cbabe5c3973f37e819538b
Signed-off-by: Sourab Gupta <sourabg@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1626398
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/fifo_gv11b.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c b/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c index 4fd90c0d..9fbd74fb 100644 --- a/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c | |||
@@ -21,8 +21,6 @@ | |||
21 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 21 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
22 | * DEALINGS IN THE SOFTWARE. | 22 | * DEALINGS IN THE SOFTWARE. |
23 | */ | 23 | */ |
24 | #include <linux/delay.h> | ||
25 | #include <linux/types.h> | ||
26 | 24 | ||
27 | #include <nvgpu/semaphore.h> | 25 | #include <nvgpu/semaphore.h> |
28 | #include <nvgpu/timers.h> | 26 | #include <nvgpu/timers.h> |
@@ -455,7 +453,7 @@ static int gv11b_fifo_poll_pbdma_chan_status(struct gk20a *g, u32 id, | |||
455 | break; | 453 | break; |
456 | } | 454 | } |
457 | 455 | ||
458 | usleep_range(delay, delay * 2); | 456 | nvgpu_usleep_range(delay, delay * 2); |
459 | delay = min_t(unsigned long, | 457 | delay = min_t(unsigned long, |
460 | delay << 1, GR_IDLE_CHECK_MAX); | 458 | delay << 1, GR_IDLE_CHECK_MAX); |
461 | } while (!nvgpu_timeout_expired_msg(&timeout, | 459 | } while (!nvgpu_timeout_expired_msg(&timeout, |