mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: Add nvgpu_nvhost_syncpt_get_name() for safety build
JIRA NVGPU-3770 Change-Id: Ic811ea50d364b9229db341aefb0c08124cacfc5f Signed-off-by: Lakshmanan M <lm@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2286335 Reviewed-by: Dinesh T <dt@nvidia.com> Reviewed-by: Rajesh Devaraj <rdevaraj@nvidia.com> Reviewed-by: Vaibhav Kachore <vkachore@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: Dinesh T <dt@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
This commit is contained in:
committed by
Alex Waterman
parent
fcfdc711d8
commit
bf072ed669
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017-2019, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2017-2020, NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@@ -96,11 +96,22 @@ u32 nvgpu_nvhost_get_syncpt_host_managed(struct nvgpu_nvhost_dev *nvgpu_syncpt_d
|
||||
int nvgpu_nvhost_create_symlink(struct gk20a *g);
|
||||
void nvgpu_nvhost_remove_symlink(struct gk20a *g);
|
||||
|
||||
const char *nvgpu_nvhost_syncpt_get_name(struct nvgpu_nvhost_dev *nvgpu_syncpt_dev,
|
||||
int id);
|
||||
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Get the sync_pt name of given sync point id.
|
||||
*
|
||||
* @param nvgpu_syncpt_dev [in] Sync point device.
|
||||
* @param id [in] Sync point id.
|
||||
*
|
||||
* - Read the sync_pt name of the given sync point by de-referring the
|
||||
* #nvgpu_syncpt_dev->syncpt_names.
|
||||
*
|
||||
* @return sync_pt name of given sync point id.
|
||||
*/
|
||||
const char *nvgpu_nvhost_syncpt_get_name(
|
||||
struct nvgpu_nvhost_dev *nvgpu_syncpt_dev, int id);
|
||||
|
||||
/**
|
||||
* @brief Increment the value of given sync point to the maximum value.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user