Skip to content

Commit

Permalink
mdss: previous cherry-pick fix
Browse files Browse the repository at this point in the history
Signed-off-by: wlkmanist <t.me/wlkmanist>
  • Loading branch information
wlkmanist committed Jan 17, 2021
1 parent 5344237 commit 36264fb
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions drivers/video/msm/mdss/mdss_mdp_overlay.c
Original file line number Diff line number Diff line change
Expand Up @@ -2228,7 +2228,6 @@ __vsync_retire_get_fence(struct msm_sync_pt_data *sync_pt_data)
static int __vsync_retire_setup(struct msm_fb_data_type *mfd)
{
struct mdss_overlay_private *mdp5_data = mfd_to_mdp5_data(mfd);
struct sched_param param = { .sched_priority = 5 };
char name[24];
struct sched_param param = { .sched_priority = 5 };

Expand All @@ -2255,18 +2254,6 @@ static int __vsync_retire_setup(struct msm_fb_data_type *mfd)

mfd->mdp_sync_pt_data.get_retire_fence = __vsync_retire_get_fence;

init_kthread_worker(&mdp5_data->worker);
init_kthread_work(&mdp5_data->vsync_work, __vsync_retire_work_handler);

mdp5_data->thread = kthread_run(kthread_worker_fn,
&mdp5_data->worker, "vsync_retire_work");
if (IS_ERR_OR_NULL(mdp5_data->thread)) {
pr_err("Unable to start vsync thread\n");
return -ENOMEM;
}

sched_setscheduler(mdp5_data->thread, SCHED_FIFO, &param);

mdp5_data->vsync_retire_handler.vsync_handler =
__vsync_retire_handle_vsync;
mdp5_data->vsync_retire_handler.cmd_post_flush = false;
Expand Down

0 comments on commit 36264fb

Please sign in to comment.