mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
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:
committed by
mobile promotions
parent
45c87920e5
commit
a6d28bc2c8
@@ -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);
|
||||
|
||||
@@ -12,7 +12,6 @@
|
||||
|
||||
struct nvhost_ctrl_sync_fence_info;
|
||||
struct nvhost_fence;
|
||||
struct nvhost_job;
|
||||
|
||||
#define NVHOST_MODULE_MAX_CLOCKS 8
|
||||
#define NVHOST_MODULE_MAX_IORESOURCE_MEM 5
|
||||
@@ -213,7 +212,6 @@ u32 nvhost_get_syncpt_gpu_managed(struct platform_device *pdev,
|
||||
const char *syncpt_name);
|
||||
void nvhost_syncpt_put_ref_ext(struct platform_device *pdev, u32 id);
|
||||
bool nvhost_syncpt_is_valid_pt_ext(struct platform_device *dev, u32 id);
|
||||
void nvhost_syncpt_set_minval(struct platform_device *dev, u32 id, u32 val);
|
||||
void nvhost_syncpt_set_min_update(struct platform_device *pdev, u32 id, u32 val);
|
||||
int nvhost_syncpt_read_ext_check(struct platform_device *dev, u32 id, u32 *val);
|
||||
u32 nvhost_syncpt_read_maxval(struct platform_device *dev, u32 id);
|
||||
@@ -269,8 +267,6 @@ static inline int nvhost_fence_foreach_pt(
|
||||
return -EOPNOTSUPP;
|
||||
}
|
||||
|
||||
static inline void nvhost_job_put(struct nvhost_job *job) {}
|
||||
|
||||
static inline struct nvhost_fence *nvhost_fence_get(int fd)
|
||||
{
|
||||
return NULL;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2017-2023, NVIDIA Corporation. All rights reserved.
|
||||
* Copyright (c) 2017-2024, NVIDIA Corporation. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef __LINUX_NVHOST_T194_H__
|
||||
@@ -13,17 +13,8 @@ int nvhost_syncpt_unit_interface_get_aperture(
|
||||
|
||||
u32 nvhost_syncpt_unit_interface_get_byte_offset(u32 syncpt_id);
|
||||
|
||||
#ifdef CONFIG_TEGRA_HOST1X
|
||||
u32 nvhost_syncpt_unit_interface_get_byte_offset_ext(
|
||||
struct platform_device *host_pdev,
|
||||
u32 syncpt_id);
|
||||
#else
|
||||
static inline u32 nvhost_syncpt_unit_interface_get_byte_offset_ext(
|
||||
struct platform_device *host_pdev,
|
||||
u32 syncpt_id)
|
||||
{
|
||||
return nvhost_syncpt_unit_interface_get_byte_offset(syncpt_id);
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* __LINUX_NVHOST_T194_H__ */
|
||||
|
||||
Reference in New Issue
Block a user