summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/volt/volt.h
diff options
context:
space:
mode:
authorSourab Gupta <sourabg@nvidia.com>2018-04-30 06:23:22 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-05-07 07:42:29 -0400
commit2b498cdf8aaa6c628cc1ac8e2b0b3a582c0decb3 (patch)
tree7646f75c290fab717d674ebc9b6d6b870146523f /drivers/gpu/nvgpu/volt/volt.h
parent3dabdf3e6d703ffdb4549ab54cf5bca34460706b (diff)
gpu: nvgpu: remove rcu locks in clk arbiter
RCU's are available only in (linux) kernel. Though they are able to achieve lockless access in some specific scenarios, they are heavily dependent on the kernel for their functionality. E.g. synchronize_rcu(), which depends on the kernel in order to delimit read side critical sections. As such it is very difficult to implement constructs analogous to RCUs in userspace code. As a result the code which depends on RCU's for synchronization is not portable between OS'es, especially if one of them is in userspace, viz. QNX. Also, if the code is not in performance critical path, we can do with non-RCU constructs. For clk arbiter code here, RCU's are replaced by the traditional spinlocks, so that the code could be used by QNX down the line. Jira VQRM-3741 Change-Id: I178e5958788c8fd998303a6a94d8f2f328201508 Signed-off-by: Sourab Gupta <sourabg@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1705535 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: Alex Waterman <alexw@nvidia.com> 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/volt/volt.h')
0 files changed, 0 insertions, 0 deletions