mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
gpu: host1x-nvhost: Remove unused argument
The integer argument returned by the NVHOST interrupt notifier has never been supported by the host1x-nvhost driver. The DLA driver's nvdla_queue_update() function that is called by this notifier has been update so that it no longer uses this argument. Given that there are no other users of this notifier for the host1x-nvhost driver, let's remove this unused variable. Bug 4059530 Change-Id: I04dda2ea7338f0c7ee55e6e968b46f063eecae90 Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2892312 Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Amit Sharma (SW-TEGRA) <amisharma@nvidia.com> Reviewed-by: Mitch Harwell <mharwell@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
45992044df
commit
0f857d6cff
@@ -680,7 +680,7 @@ EXPORT_SYMBOL(nvhost_flcn_finalize_poweron);
|
||||
struct nvhost_host1x_cb {
|
||||
struct dma_fence_cb cb;
|
||||
struct work_struct work;
|
||||
void (*notifier)(void *data, int unused);
|
||||
void (*notifier)(void *data);
|
||||
void *notifier_data;
|
||||
};
|
||||
|
||||
@@ -698,13 +698,13 @@ static void nvhost_intr_do_work(struct work_struct *work)
|
||||
struct nvhost_host1x_cb *host1x_cb;
|
||||
|
||||
host1x_cb = container_of(work, struct nvhost_host1x_cb, work);
|
||||
host1x_cb->notifier(host1x_cb->notifier_data, 0);
|
||||
host1x_cb->notifier(host1x_cb->notifier_data);
|
||||
kfree_rcu(host1x_cb);
|
||||
}
|
||||
|
||||
int nvhost_intr_register_notifier(struct platform_device *pdev,
|
||||
u32 id, u32 thresh,
|
||||
void (*callback)(void *data, int unused),
|
||||
void (*callback)(void *data),
|
||||
void *private_data)
|
||||
{
|
||||
struct nvhost_device_data *pdata = platform_get_drvdata(pdev);
|
||||
|
||||
@@ -311,7 +311,16 @@ static inline size_t nvdla_profile_status_offset(struct nvdla_task *task)
|
||||
return offset;
|
||||
}
|
||||
|
||||
|
||||
#if IS_ENABLED(CONFIG_TEGRA_GRHOST)
|
||||
/*
|
||||
* This function definition can be removed once support
|
||||
* for the NVIDIA Linux v5.10 kernel is removed.
|
||||
*/
|
||||
static void nvdla_queue_update(void *priv, int unused)
|
||||
#else
|
||||
static void nvdla_queue_update(void *priv)
|
||||
#endif
|
||||
{
|
||||
int task_complete;
|
||||
struct nvdla_task *task, *safe;
|
||||
|
||||
@@ -491,15 +491,14 @@ dma_addr_t nvhost_syncpt_address(struct platform_device *engine_pdev, u32 id);
|
||||
int nvhost_syncpt_unit_interface_init(struct platform_device *pdev);
|
||||
void nvhost_syncpt_unit_interface_deinit(struct platform_device *pdev);
|
||||
|
||||
#ifdef CONFIG_TEGRA_HOST1X
|
||||
/* public host1x interrupt management APIs */
|
||||
int nvhost_intr_register_notifier(struct platform_device *pdev,
|
||||
u32 id, u32 thresh,
|
||||
void (*callback)(void *, int),
|
||||
void (*callback)(void *),
|
||||
void *private_data);
|
||||
|
||||
/* public host1x sync-point management APIs */
|
||||
#ifdef CONFIG_TEGRA_HOST1X
|
||||
|
||||
struct host1x *nvhost_get_host1x(struct platform_device *pdev);
|
||||
|
||||
static inline struct flcn *get_flcn(struct platform_device *pdev)
|
||||
@@ -636,6 +635,11 @@ static inline void nvhost_eventlib_log_fences(struct platform_device *pdev,
|
||||
{
|
||||
}
|
||||
#else
|
||||
/* public host1x interrupt management APIs */
|
||||
int nvhost_intr_register_notifier(struct platform_device *pdev,
|
||||
u32 id, u32 thresh,
|
||||
void (*callback)(void *, int),
|
||||
void *private_data);
|
||||
|
||||
#ifdef CONFIG_DEBUG_FS
|
||||
void nvhost_register_dump_device(
|
||||
|
||||
Reference in New Issue
Block a user