gpu: host1x-nvhost: Remove unused functions

The functions nvhost_job_put() and nvhost_syncpt_set_minval() are no
longer used so remove these functions.

The flag CONFIG_TEGRA_HOST1X is always true for out-of-tree drivers and
so remove the legacy code for when this flag is not defined.

Bug 4475969

Change-Id: I88c89d30bfc9be4b8628f115ea96835cb5f6f295
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3091653
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Brad Griffis <bgriffis@nvidia.com>
This commit is contained in:
Jon Hunter
2024-03-07 17:49:42 +00:00
committed by mobile promotions
parent 45c87920e5
commit a6d28bc2c8
3 changed files with 1 additions and 31 deletions

View File

@@ -307,23 +307,6 @@ int nvhost_syncpt_is_expired_ext(struct platform_device *pdev, u32 id,
}
EXPORT_SYMBOL(nvhost_syncpt_is_expired_ext);
void nvhost_syncpt_set_minval(struct platform_device *pdev, u32 id, u32 val)
{
struct nvhost_device_data *pdata = platform_get_drvdata(pdev);
struct host1x_syncpt *sp;
u32 cur;
sp = host1x_syncpt_get_by_id_noref(pdata->host1x, id);
if (WARN_ON(!sp))
return;
cur = host1x_syncpt_read(sp);
while (cur++ != val)
host1x_syncpt_incr(sp);
}
EXPORT_SYMBOL(nvhost_syncpt_set_minval);
void nvhost_syncpt_set_min_update(struct platform_device *pdev, u32 id, u32 val)
{
struct nvhost_device_data *pdata = platform_get_drvdata(pdev);