diff options
author | Peter Daifuku <pdaifuku@nvidia.com> | 2018-09-27 20:23:37 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-09-29 02:04:32 -0400 |
commit | 1e125f245e95982d02746aab0fd2b9ea8db009f8 (patch) | |
tree | 4582918af8fbb26c805cb4ad948804f417b38a99 /drivers/gpu/nvgpu/include | |
parent | 82baff9f6f3c7bb242d5378e3118763069460033 (diff) |
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 <pdaifuku@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1850585
Reviewed-by: svc-misra-checker <svc-misra-checker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Debarshi Dutta <ddutta@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Nirav Patel <nipatel@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/include')
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/clk_arb.h | 2 |
1 files changed, 2 insertions, 0 deletions
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, | |||
369 | 369 | ||
370 | void nvgpu_clk_arb_event_post_event(struct nvgpu_clk_dev *dev); | 370 | void nvgpu_clk_arb_event_post_event(struct nvgpu_clk_dev *dev); |
371 | 371 | ||
372 | unsigned long nvgpu_clk_measure_freq(struct gk20a *g, u32 api_domain); | ||
373 | |||
372 | #ifdef CONFIG_DEBUG_FS | 374 | #ifdef CONFIG_DEBUG_FS |
373 | int nvgpu_clk_arb_debugfs_init(struct gk20a *g); | 375 | int nvgpu_clk_arb_debugfs_init(struct gk20a *g); |
374 | #endif | 376 | #endif |