summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/therm/thrmdev.c
diff options
context:
space:
mode:
authorThomas Fleury <tfleury@nvidia.com>2018-12-26 18:13:24 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2019-10-11 11:37:18 -0400
commit7b3d5d6bf07e9d7633995ca7c4c1ab4090a139e7 (patch)
tree97022e86785c52edbef59501833a2ed2f15c3fee /drivers/gpu/nvgpu/therm/thrmdev.c
parent99700222a553bc40bd1d1c8a7d430ce2090ecc93 (diff)
gpu: nvgpu: fix NVGPU_COND_WAIT_INTERRUPTIBLE
When called with timeout=0, NVGPU_COND_WAIT_INTERRUPTIBLE macro ignores the return code from wait_event_interruptible. As a result we do not detect when the call is interrupted, and the calling process hangs. Use wait_event_interruptible return code in case of infinite timeout. Bug 200384829 Bug 200543218 Change-Id: I930f0d08c73a3b91ab20a6c8faaf633a3d7aee4d Signed-off-by: Thomas Fleury <tfleury@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1982242 (cherry picked from commit 78c513790ac64605cea673c26e6d0d71c3d8db0a) Reviewed-on: https://git-master.nvidia.com/r/2215159 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Tested-by: Peter Daifuku <pdaifuku@nvidia.com> Reviewed-by: Satish Arora <satisha@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/thrmdev.c')
0 files changed, 0 insertions, 0 deletions