From 1e125f245e95982d02746aab0fd2b9ea8db009f8 Mon Sep 17 00:00:00 2001 From: Peter Daifuku Date: Thu, 27 Sep 2018 17:23:37 -0700 Subject: gpu: nvgpu: support for clk.measure_freq for igpu Add support for the measure_freq clock op for igpu: - add nvgpu_clk_measure_freq(), which in turn calls the get_rate() clock op. - Initialize the measure_freq clock op to nvgpu_clk_measure_freq() for native linux and vgpu. JIRA ESRM-398 Change-Id: I8a3b2ee79e29e3491a16f55281494f05cd841b07 Signed-off-by: Peter Daifuku Reviewed-on: https://git-master.nvidia.com/r/1850585 Reviewed-by: svc-misra-checker GVS: Gerrit_Virtual_Submit Reviewed-by: Debarshi Dutta Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Nirav Patel Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/include/nvgpu/clk_arb.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'drivers/gpu/nvgpu/include') diff --git a/drivers/gpu/nvgpu/include/nvgpu/clk_arb.h b/drivers/gpu/nvgpu/include/nvgpu/clk_arb.h index a04e3542..43af6312 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/clk_arb.h +++ b/drivers/gpu/nvgpu/include/nvgpu/clk_arb.h @@ -369,6 +369,8 @@ void nvgpu_clk_notification_queue_free(struct gk20a *g, void nvgpu_clk_arb_event_post_event(struct nvgpu_clk_dev *dev); +unsigned long nvgpu_clk_measure_freq(struct gk20a *g, u32 api_domain); + #ifdef CONFIG_DEBUG_FS int nvgpu_clk_arb_debugfs_init(struct gk20a *g); #endif -- cgit v1.2.2