drm/amd/display: remove unused functions in amdgpu_dm_irq.c
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 11 Oct 2017 13:59:50 +0000 (09:59 -0400)
committerDave Airlie <airlied@redhat.com>
Tue, 17 Oct 2017 00:43:04 +0000 (10:43 +1000)
Not used.

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.h

index 743a9a361fc66aa1dfddd4e22f3706c1219f60ce..1b7df0b6c6d31170ee60f527119548b33063ac26 100644 (file)
@@ -228,27 +228,6 @@ static void remove_timer_handler(struct amdgpu_device *adev,
        }
 }
 
-/**
- * dm_timer_work_func - Handle a timer.
- *
- * @work: work struct
- */
-static void dm_timer_work_func(struct work_struct *work)
-{
-       struct amdgpu_dm_timer_handler_data *handler_data =
-               container_of(work, struct amdgpu_dm_timer_handler_data,
-                               d_work.work);
-
-       DRM_DEBUG_KMS("DM_IRQ: work_func: handler_data=%p\n", handler_data);
-
-       /* Call a DAL subcomponent which registered for timer notification. */
-       handler_data->hcd.handler(handler_data->hcd.handler_arg);
-
-       /* We support only "single shot" timers. That means we must delete
-        * the handler after it was called. */
-       remove_timer_handler(handler_data->hcd.dm->adev, handler_data);
-}
-
 static bool
 validate_irq_registration_params(struct dc_interrupt_params *int_params,
                                 void (*ih)(void *))
@@ -419,47 +398,6 @@ int amdgpu_dm_irq_init(struct amdgpu_device *adev)
        return 0;
 }
 
-void amdgpu_dm_irq_register_timer(struct amdgpu_device *adev,
-                                 struct dc_timer_interrupt_params *int_params,
-                                 interrupt_handler ih,
-                                 void *args)
-{
-       unsigned long jf_delay;
-       struct list_head *handler_list;
-       struct amdgpu_dm_timer_handler_data *handler_data;
-       unsigned long irq_table_flags;
-
-       handler_data = kzalloc(sizeof(*handler_data), GFP_KERNEL);
-       if (!handler_data) {
-               DRM_ERROR("DM_IRQ: failed to allocate timer handler!\n");
-               return;
-       }
-
-       memset(handler_data, 0, sizeof(*handler_data));
-
-       init_handler_common_data(&handler_data->hcd, ih, args, &adev->dm);
-
-       INIT_DELAYED_WORK(&handler_data->d_work, dm_timer_work_func);
-
-       /* Lock the list, add the handler. */
-       DM_IRQ_TABLE_LOCK(adev, irq_table_flags);
-
-       handler_list = &adev->dm.timer_handler_list;
-
-       list_add_tail(&handler_data->hcd.list, handler_list);
-
-       DM_IRQ_TABLE_UNLOCK(adev, irq_table_flags);
-
-       jf_delay = usecs_to_jiffies(int_params->micro_sec_interval);
-
-       queue_delayed_work(adev->dm.timer_workqueue, &handler_data->d_work,
-                       jf_delay);
-
-       DRM_DEBUG_KMS("DM_IRQ: added handler:%p with micro_sec_interval=%u\n",
-                       handler_data, int_params->micro_sec_interval);
-       return;
-}
-
 /* DM IRQ and timer resource release */
 void amdgpu_dm_irq_fini(struct amdgpu_device *adev)
 {
index 0927ed4ab758417a54ef71ec23f8726b25564af5..393fcf7bbcb4afce2e2badc8b60005dcdb79bcf4 100644 (file)
@@ -80,11 +80,6 @@ void amdgpu_dm_irq_unregister_interrupt(struct amdgpu_device *adev,
                                        enum dc_irq_source irq_source,
                                        void *ih_index);
 
-void amdgpu_dm_irq_register_timer(struct amdgpu_device *adev,
-                                 struct dc_timer_interrupt_params *int_params,
-                                 interrupt_handler ih,
-                                 void *args);
-
 /**
  * amdgpu_dm_irq_handler
  * Generic IRQ handler, calls all registered high irq work immediately, and