mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 09:57:08 +03:00
The internal add_sema_cmd() used when making cmd buf entries has so many branches it makes sense to split it at the bool acquire flag into two functions. The wait part doesn't even need the wfi flag, and the incr part doesn't need offset. Jira NVGPU-4548 Change-Id: Iab26b9bc14564e2958935ab7ffda03aa873dd9b1 Signed-off-by: Konsta Hölttä <kholtta@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2323320 (cherry picked from commit 9fe2830aa9ee2b0b165edc959defa74dfb49c6ba) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2328410 Reviewed-by: automaticguardword <automaticguardword@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>