The usleep range is too heavy. In case the condition
is not true, we incur a penalty of > 1 ms. Reducing the
sleep range will reduce the latency hit.
Change-Id: Ib2269685c5e2f6816bd630ec01fcbd17e32139de
Signed-off-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-on: http://git-master/r/289276
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
idle_stat);
return -EBUSY;
}
- usleep_range(1000, 2000);
+ usleep_range(100, 200);
} while (1);
nvhost_dbg_fn("done");