diff options
author | Bharat Nihalani <bnihalani@nvidia.com> | 2017-06-16 03:13:47 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-06-19 17:35:13 -0400 |
commit | 2535c81c6c916f9f2e1224e17e80d240df569e49 (patch) | |
tree | 6d84117ff417dde8cc23db4060e5e898ef74f2e5 /drivers/gpu/nvgpu/common/pmu/pmu.c | |
parent | 8dc75c172567ce81819b75cd9714fc887174583b (diff) |
gpu: nvgpu: use usleep_range instead of msleep
msleep is not recommended for (1ms - 20ms). So use usleep_range
instead to have a more deterministic sleep time.
Also fix the print for target_ref_count that could either be 2 or
1 based on whether GPU rail-gating is enabled or not.
Bug 200294536
Change-Id: I26c9ed8a1badc84db5efa89347a227e6b46f603c
Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-on: http://git-master/r/1500409
Reviewed-on: http://git-master/r/1503628
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Diffstat (limited to 'drivers/gpu/nvgpu/common/pmu/pmu.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/pmu/pmu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/common/pmu/pmu.c b/drivers/gpu/nvgpu/common/pmu/pmu.c index 15b57988..35422e0d 100644 --- a/drivers/gpu/nvgpu/common/pmu/pmu.c +++ b/drivers/gpu/nvgpu/common/pmu/pmu.c | |||
@@ -357,7 +357,7 @@ static int nvgpu_pg_init_task(void *arg) | |||
357 | } | 357 | } |
358 | 358 | ||
359 | while (!nvgpu_thread_should_stop(&pg_init->state_task)) | 359 | while (!nvgpu_thread_should_stop(&pg_init->state_task)) |
360 | nvgpu_msleep(5); | 360 | nvgpu_usleep_range(5000, 5100); |
361 | 361 | ||
362 | nvgpu_log_fn(g, "thread exit"); | 362 | nvgpu_log_fn(g, "thread exit"); |
363 | 363 | ||