diff options
author | Seema Khowala <seemaj@nvidia.com> | 2017-10-04 18:01:32 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-11-06 14:19:42 -0500 |
commit | f60619554243efbc333b5b7af71c9df5bfd897ff (patch) | |
tree | 11251e8d5968d1fabcdf74683d0f4242469d5e4e /drivers/gpu/nvgpu/therm/thrmpmu.c | |
parent | 82207a3d3cc69b296158e6ead6061df24609b777 (diff) |
gpu: nvgpu: use nvgpu_udelay and optimize do while loop
- For interrupt context, use nvgpu_udelay()
instead of nvgpu_usleep_range()
- Use while loop instead of do while loop for polling
as this will help minimize overall delay
Bug 200350539
Change-Id: Icc05911082877df7f9e807da8f16e4d54e620cd8
Signed-off-by: Seema Khowala <seemaj@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1573303
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/therm/thrmpmu.c')
0 files changed, 0 insertions, 0 deletions