mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
common.ptimer unit right now exposes two APIs - scale_ptimer() to scale the timer ptimer_scalingfactor10x() to get the scaling factor receiving scaling factor is not really necessary for user of common.ptimer since it can be internally calculated in scale_ptimer() function itself. Hence make ptimer_scalingfactor10x() static and rename public API scale_ptimer() to nvgpu_ptimer_scale() nvgpu_ptimer_scale() will not accept timeout value as parameter and return scaled timeout value in another pointer parameter. Error code is returned if timeout value is invalid. Jira NVGPU-6394 Change-Id: Ib882d99f6096c3af5f96eef298d713fb5e36dd87 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2546970 (cherry picked from commit 2da7c918efe91046818c83481664312e194ead8e) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2551334 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>