From 2535c81c6c916f9f2e1224e17e80d240df569e49 Mon Sep 17 00:00:00 2001 From: Bharat Nihalani Date: Fri, 16 Jun 2017 12:43:47 +0530 Subject: 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 Reviewed-on: http://git-master/r/1500409 Reviewed-on: http://git-master/r/1503628 Reviewed-by: Terje Bergstrom Tested-by: Terje Bergstrom Reviewed-by: Automatic_Commit_Validation_User --- drivers/gpu/nvgpu/common/pmu/pmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/gpu/nvgpu/common/pmu') 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) } while (!nvgpu_thread_should_stop(&pg_init->state_task)) - nvgpu_msleep(5); + nvgpu_usleep_range(5000, 5100); nvgpu_log_fn(g, "thread exit"); -- cgit v1.2.2